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:
Misa
2020-04-28 16:45:53 -07:00
committed by Ethan Lee
parent a7b62d1098
commit a479c61141

View File

@@ -1087,16 +1087,13 @@ void gamelogic()
obj.entities[i].xp += 320;
obj.entities[i].oldxp += 320;
}
else
{
if (obj.entities[i].xp > 310)
else if (obj.entities[i].xp > 310)
{
obj.entities[i].xp -= 320;
obj.entities[i].oldxp -= 320;
}
}
}
}
else
{
//Do not wrap! Instead, go to the correct room