mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Replace if.. by switch
This commit is contained in:
parent
7965f0e477
commit
ab80a8fcc1
@ -1158,29 +1158,27 @@ void CDecor::MoveFire (Sint32 rank)
|
||||
if (m_decor[x / 2][y / 2].fire == DIMOBJY)
|
||||
{
|
||||
icon = m_decor[x / 2][y / 2].floorIcon;
|
||||
if (icon == 20) // herbe foncée ?
|
||||
switch (icon)
|
||||
{
|
||||
case 20: // herbe foncée ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 19); // herbe brulée
|
||||
}
|
||||
if (icon == 59) // pont ?
|
||||
{
|
||||
break;
|
||||
case 59: // pont ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 2); // rivage
|
||||
}
|
||||
if (icon == 61) // pont ?
|
||||
{
|
||||
break;
|
||||
case 61: // pont ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 4); // rivage
|
||||
}
|
||||
if (icon == 62) // pont ?
|
||||
{
|
||||
break;
|
||||
case 62: // pont ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 3); // rivage
|
||||
}
|
||||
if (icon == 64) // pont ?
|
||||
{
|
||||
break;
|
||||
case 64: // pont ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 5); // rivage
|
||||
}
|
||||
if (icon == 60 || icon == 63) // pont ?
|
||||
{
|
||||
break;
|
||||
case 60:
|
||||
case 63: // pont ?
|
||||
PutFloor (GetCel (x, y), CHFLOOR, 14); // eau
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user