]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
First implementation of powered systems. When armor (not treated as charge) is lower...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 17:24:08 +0000 (19:24 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 17:24:08 +0000 (19:24 +0200)
data/qcsrc/client/sbar.qc

index 40171815fb9890d12e0204ff9493b0c1117b7d7d..84756fd341f86a96bd52edeadbf6a214ee7d57da 100644 (file)
@@ -3078,6 +3078,10 @@ void Sbar_Draw (void)
                fade = 3.2 - 2 * (time - weapontime);\r
                fade = bound(0.7, fade, 1);\r
 \r
+               if(getstati(STAT_HEALTH) > 0)\r
+               if(getstati(STAT_ARMOR) < g_power)\r
+                       return;\r
+\r
                if(g_vore) // only when the vore system is active\r
                {\r
                        // draw the stomach board\r
@@ -3181,10 +3185,6 @@ void Sbar_Draw (void)
                        Sbar_PrintStomachboardItemPred(bottomleft - '-76 150 0', pred);\r
                }\r
 \r
-//             if(getstati(STAT_HEALTH) > 0)\r
-//             if(getstati(STAT_ARMOR) < g_power)\r
-//                     return;\r
-\r
                // draw status, scores, timer, and ring\r
                Sbar_Status();\r
                Sbar_Score();\r