mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Invert logic for readability
This commit is contained in:
parent
dc6895ffdc
commit
18551ced5f
13
src/fix.cxx
13
src/fix.cxx
@ -628,13 +628,13 @@ CDecor::ArrangeObject (Point cel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Arrange les rayons entre les tours.
|
|
||||||
if (
|
if (
|
||||||
!g_restoreBugs ||
|
g_restoreBugs &&
|
||||||
(g_restoreBugs &&
|
(m_decor[cel.x / 2][cel.y / 2].objectIcon != 27 && // not a tower?
|
||||||
(m_decor[cel.x / 2][cel.y / 2].objectIcon == 27 || // tour ?
|
m_decor[cel.x / 2][cel.y / 2].objectIcon != -1))
|
||||||
m_decor[cel.x / 2][cel.y / 2].objectIcon == -1)))
|
return;
|
||||||
{
|
|
||||||
|
// Arrange les rayons entre les tours.
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
vector = GetVector (i * 2 * 16);
|
vector = GetVector (i * 2 * 16);
|
||||||
@ -702,7 +702,6 @@ CDecor::ArrangeObject (Point cel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Test s'il faut remplir le sol ici.
|
// Test s'il faut remplir le sol ici.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user