]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Match reading properly
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 17:18:00 +0000 (19:18 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 17:18:00 +0000 (19:18 +0200)
data/qcsrc/client/Main.qc
data/qcsrc/client/sbar.qc

index 154ac15215b0ea5aaf89b99e736e10f601c006c3..bc4c745c08a3e0991af00b859ac7511dd32627b4 100644 (file)
@@ -1061,8 +1061,8 @@ void Ent_Init()
        armor_max = ReadCoord();\r
        teamheal_max = ReadCoord();\r
 \r
-       g_power = ReadCoord();\r
-       g_power_reboot = ReadCoord();\r
+       g_power = ReadShort();\r
+       g_power_reboot = ReadShort();\r
 \r
        if(!postinit)\r
                PostInit();\r
index 61d7e8f2801ab9d042d9d043a888cd747cfa00b4..40171815fb9890d12e0204ff9493b0c1117b7d7d 100644 (file)
@@ -3181,6 +3181,10 @@ 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