aboutsummaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-07-30 23:51:37 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-07-30 23:51:37 -0600
commitfc6e0037a2f0769fdbd4c18bd96f49d55f630757 (patch)
tree79f6561d192c3e6e5887422c6b31beac35eab046 /src/world.c
parentf6dc479873edc98704dcf1ffb116ba5da03805b2 (diff)
Started caporale circling thingy
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index 6d51a09..ebfc7ed 100644
--- a/src/world.c
+++ b/src/world.c
@@ -297,8 +297,12 @@ void updateWorld(World * world, Game * game) {
}
// "bring out your dead!"
- for (i = 0; i < killCount; ++i)
+ for (i = 0; i < killCount; ++i) {
+ if (kills[i] == 0) // Hack to keep player alive while debugging.
+ continue;
+
removeEntityFromWorld(world, kills[i]);
+ }
}
void drawWorld(World * world, Game * game) {