Clip suspicion % to 0.

This commit is contained in:
Steve 2016-05-19 16:52:13 +01:00
parent 5efc353564
commit e972bc0224
1 changed files with 1 additions and 1 deletions

View File

@ -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)