mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-30 08:28:29 +02:00
Simplify "else if" indentation for right-side tower screen wrapping
No need to make an entire else-block and indent it when you can just do "else if" instead.
This commit is contained in:
parent
a7b62d1098
commit
a479c61141
|
@ -1087,16 +1087,13 @@ void gamelogic()
|
||||||
obj.entities[i].xp += 320;
|
obj.entities[i].xp += 320;
|
||||||
obj.entities[i].oldxp += 320;
|
obj.entities[i].oldxp += 320;
|
||||||
}
|
}
|
||||||
else
|
else if (obj.entities[i].xp > 310)
|
||||||
{
|
|
||||||
if (obj.entities[i].xp > 310)
|
|
||||||
{
|
{
|
||||||
obj.entities[i].xp -= 320;
|
obj.entities[i].xp -= 320;
|
||||||
obj.entities[i].oldxp -= 320;
|
obj.entities[i].oldxp -= 320;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Do not wrap! Instead, go to the correct room
|
//Do not wrap! Instead, go to the correct room
|
||||||
|
|
Loading…
Reference in New Issue
Block a user