From 01376bfbb5897be8f9a8d34929a8ac59156ab92c Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 18 May 2016 09:48:06 +0100 Subject: [PATCH] Allow suspicion level to become negative. --- src/battle/bullets.c | 2 +- src/battle/fighters.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/bullets.c b/src/battle/bullets.c index 6c8627a..b44a9d5 100644 --- a/src/battle/bullets.c +++ b/src/battle/bullets.c @@ -183,7 +183,7 @@ static void checkCollisions(Bullet *b) if (battle.hasSuspicionLevel) { - battle.suspicionLevel = MAX(0, battle.suspicionLevel - (MAX_SUSPICION_LEVEL * 0.01)); + battle.suspicionLevel--; } } diff --git a/src/battle/fighters.c b/src/battle/fighters.c index d83bcea..2e8474b 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -571,7 +571,7 @@ static void die(void) if (battle.hasSuspicionLevel) { - battle.suspicionLevel = MAX(0, battle.suspicionLevel - (MAX_SUSPICION_LEVEL * 0.1)); + battle.suspicionLevel -= (MAX_SUSPICION_LEVEL * 0.1); } if (battle.isEpic)