From 30103bde5cf1dba71365ef5de7b6279af6bae95f Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 24 Mar 2018 16:57:48 +0000 Subject: [PATCH] Only inc objective count if not already dead. --- src/entities/misc/destructable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/misc/destructable.c b/src/entities/misc/destructable.c index 1397863..42da282 100644 --- a/src/entities/misc/destructable.c +++ b/src/entities/misc/destructable.c @@ -94,7 +94,7 @@ static void action(void) throwDebris(s->x + s->w / 2, s->y + s->h / 2, 1); } - if (s->health <= -50) + if (s->health <= -50 && s->alive != ALIVE_DEAD) { dropCarriedItem();