diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
commit | c28b9fdb3c15248604d38717a03e98c78ac88961 (patch) | |
tree | adf29a1c533d0217403c37e2590028e7fa892586 /src/world.c | |
parent | 4ca42bd3b6a55ee92cdf1af0f3137ab815f0375d (diff) |
Added kill log
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); |