Make sure we don't use a negative index into sb_faces.

This commit is contained in:
Marcus Sundberg 2000-02-05 16:01:15 +00:00
parent 475353c278
commit 662e6491eb

View file

@ -1089,8 +1089,10 @@ void Sbar_DrawFace (void)
if (cl.stats[STAT_HEALTH] >= 100) if (cl.stats[STAT_HEALTH] >= 100)
f = 4; f = 4;
else else {
f = cl.stats[STAT_HEALTH] / 20; f = cl.stats[STAT_HEALTH] / 20;
if (f < 0) f = 0;
}
if (cl.time <= cl.faceanimtime) if (cl.time <= cl.faceanimtime)
{ {