Add basic entity death code for singular entity

This commit is contained in:
2016-07-20 02:23:11 +10:00
parent 3e2287e13a
commit 3aaad2fba3
2 changed files with 112 additions and 58 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ void debug_drawUi(GameState *state, f32 dt)
strPos, 0, color);
}
for (i32 i = 0; i < world->maxEntities; i++)
for (i32 i = 0; i < world->freeEntityIndex; i++)
{
Entity *const entity = &world->entities[i];
/* Render debug markers on entities */