diff options
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index 0148043..f104ec1 100644 --- a/src/world.c +++ b/src/world.c @@ -1,6 +1,7 @@ #include "world.h" #include "game.h" #include "entity.h" +#include "killLog.h" #include "entitiesInclude.h" void initWorld(World * world) { @@ -346,8 +347,10 @@ void updateWorld(World * world, Game * game) { } // "bring out your dead!" - for (i = 0; i < killCount; ++i) + for (i = 0; i < killCount; ++i) { + pushKill(&game->killLog, *getEntityFromWorld(*world, kills[i])); removeEntityFromWorld(world, kills[i]); + } // Handle some shit. handleScheduledEntities(world); |