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 (
|
||||
!g_restoreBugs ||
|
||||
(g_restoreBugs &&
|
||||
(m_decor[cel.x / 2][cel.y / 2].objectIcon == 27 || // tour ?
|
||||
m_decor[cel.x / 2][cel.y / 2].objectIcon == -1)))
|
||||
{
|
||||
g_restoreBugs &&
|
||||
(m_decor[cel.x / 2][cel.y / 2].objectIcon != 27 && // not a tower?
|
||||
m_decor[cel.x / 2][cel.y / 2].objectIcon != -1))
|
||||
return;
|
||||
|
||||
// Arrange les rayons entre les tours.
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
vector = GetVector (i * 2 * 16);
|
||||
@ -701,7 +701,6 @@ CDecor::ArrangeObject (Point cel)
|
||||
MoveFinish (test);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Test s'il faut remplir le sol ici.
|
||||
|
Loading…
x
Reference in New Issue
Block a user