]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
a big change with a little description...
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index fd63c1339165db8af43702d93845d50120f73591..32e1db6d5d934c0cecc7ddcc489c358fb1d6915f 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -783,6 +783,9 @@ void Sbar_DrawFace (void)
                f = 4;
        else
                f = cl.stats[STAT_HEALTH] / 20;
+       // LordHavoc: I don't even know how the game didn't crash without this
+       if (f < 0)
+               f = 0;
 
        if (cl.time <= cl.faceanimtime)
        {