From e972bc0224fedd2f2c237a3e701817efa77efb0d Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 19 May 2016 16:52:13 +0100 Subject: [PATCH] Clip suspicion % to 0. --- 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 8c6aabf..19cf3a7 100644 --- a/src/battle/hud.c +++ b/src/battle/hud.c @@ -626,7 +626,7 @@ static void drawSuspicionLevel(void) SDL_RenderFillRect(app.renderer, &r); - drawText(r.x + r.w + 7, SCREEN_HEIGHT - 57, 12, TA_LEFT, colors.white, "%d%%", getPercent(battle.suspicionLevel, MAX_SUSPICION_LEVEL)); + drawText(r.x + r.w + 7, SCREEN_HEIGHT - 57, 12, TA_LEFT, colors.white, "%d%%", (battle.suspicionLevel > 0) ? getPercent(battle.suspicionLevel, MAX_SUSPICION_LEVEL) : 0); } void resetHud(void)