]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't show ammo on the HUD when dead
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 31 Jan 2012 12:23:09 +0000 (14:23 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 31 Jan 2012 12:23:09 +0000 (14:23 +0200)
data/qcsrc/client/hud.qc
docs/TODO.txt

index 043e360c2c74b2079f48f67c9b9ad6cfb663f37b..646eb7e17d050bf28219e995f1d579d7d84dd762 100644 (file)
@@ -2015,6 +2015,10 @@ void Sbar_Status()
        health_pos -= '1 0 0' * stringwidth(ftos(x), FALSE, '22 22 0') * 0.5;\r
        Sbar_DrawXNum(health_pos, x, 3, 0, 22, Sbar_NumColor(x), sbar_alpha_fg, DRAWFLAG_NORMAL);\r
 \r
+       // if we are dead, we can skip the HUD from here\r
+       if(health <= 0)\r
+               return;\r
+\r
        // ammo\r
        pos_x = bottom_x + 140;\r
        pos_y = bottom_y - 20;\r
index 2004ce9528bd17a1a813acd2b57a5cc719414181..cc558a47eb6ea7ec1c0f58b033875f133ee22fb7 100644 (file)
 \r
 - 0.7: HUD icon when stunned.\r
 \r
-- 0.7: Better portrait images.\r
-\r
-- 0.7: Don't show fuel on the HUD when dead and in the stomach.
\ No newline at end of file
+- 0.7: Better portrait images.
\ No newline at end of file