mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 22:52:01 +00:00
Make sure we don't use a negative index into sb_faces.
This commit is contained in:
parent
475353c278
commit
662e6491eb
1 changed files with 3 additions and 1 deletions
|
@ -1089,8 +1089,10 @@ void Sbar_DrawFace (void)
|
|||
|
||||
if (cl.stats[STAT_HEALTH] >= 100)
|
||||
f = 4;
|
||||
else
|
||||
else {
|
||||
f = cl.stats[STAT_HEALTH] / 20;
|
||||
if (f < 0) f = 0;
|
||||
}
|
||||
|
||||
if (cl.time <= cl.faceanimtime)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue