From d6ec2dff085b0226c4ab38c3165c4e09f76d59ee Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 13 Mar 2018 08:25:16 +0000 Subject: [PATCH] Laser trap fix. --- src/entities/traps/laserTrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/traps/laserTrap.c b/src/entities/traps/laserTrap.c index c19c975..ab69e83 100644 --- a/src/entities/traps/laserTrap.c +++ b/src/entities/traps/laserTrap.c @@ -128,14 +128,14 @@ static void touch(Entity *other) if (t->offTime != 0) { swapSelf(other); - other->applyDamage((int) (other->healthMax / 4)); + other->applyDamage((int) (other->healthMax / 4) + 1); swapSelf(other); } else { /* instant kill */ swapSelf(other); - other->applyDamage((int) other->health); + other->applyDamage((int) other->healthMax + 1); swapSelf(other); }