From fc6e0037a2f0769fdbd4c18bd96f49d55f630757 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Sun, 30 Jul 2023 23:51:37 -0600 Subject: Started caporale circling thingy --- src/world.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/world.c') 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) { -- cgit v1.2.3