From e29c796801dd6b7a406ef457c0c68b4a1c7f527a Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 13:56:59 +0100 Subject: Make units die also when the health is exactly zero. --- src/game/units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/units.cpp b/src/game/units.cpp index 92e865b..e310026 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -185,7 +185,7 @@ void unit_t::damage(int points, unit_t *attacker) blood->place(&game->world); health -= points; - if (health < 0) + if (health <= 0) die(attacker); } -- cgit