Don't add dead entities to grid system.
This commit is contained in:
parent
1cd8b42664
commit
3c43c15253
|
@ -94,8 +94,6 @@ void doEntities(void)
|
|||
e->x += e->dx;
|
||||
e->y += e->dy;
|
||||
|
||||
addToGrid(e);
|
||||
|
||||
if (e->alive == ALIVE_DEAD)
|
||||
{
|
||||
if (e == battle.entityTail)
|
||||
|
@ -119,6 +117,10 @@ void doEntities(void)
|
|||
free(e);
|
||||
e = prev;
|
||||
}
|
||||
else
|
||||
{
|
||||
addToGrid(e);
|
||||
}
|
||||
}
|
||||
|
||||
if (e->type == ET_FIGHTER && (battle.epic || e->active))
|
||||
|
|
Loading…
Reference in New Issue