Draw entities backwards in towermode like non-towermode entities

This fixes a bug where the player was going behind checkpoints in towers
and it looked very weird and cursed.
This commit is contained in:
Info Teddy
2020-02-03 19:01:33 -08:00
committed by Ethan Lee
parent a08e731a39
commit d61d4f6120

View File

@@ -2477,7 +2477,7 @@ void Graphics::drawtowerentities( mapclass& map, entityclass& obj, UtilityClass&
point tpoint;
SDL_Rect trect;
for (int i = 0; i < obj.nentity; i++)
for (int i = obj.nentity - 1; i >= 0; i--)
{
if (!obj.entities[i].invis && obj.entities[i].active)
{