From 5999bc12d6fe6bad9f25b3ff339e49cf814856c3 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 18 May 2016 09:48:56 +0100 Subject: [PATCH] Clip suspicion level to 0 on HUD. --- src/battle/hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/hud.c b/src/battle/hud.c index 2818a20..cdbf1b5 100644 --- a/src/battle/hud.c +++ b/src/battle/hud.c @@ -609,7 +609,7 @@ static void drawSuspicionLevel(void) r.w -= 4; r.h -= 4; - r.w = (r.w / MAX_SUSPICION_LEVEL) * battle.suspicionLevel; + r.w = MAX((r.w / MAX_SUSPICION_LEVEL) * battle.suspicionLevel, 0); if (battle.suspicionLevel < (MAX_SUSPICION_LEVEL * 0.5)) {