Clip suspicion level to 0 on HUD.
This commit is contained in:
parent
0b1045cadc
commit
5999bc12d6
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue