From: MirceaKitsune Date: Tue, 15 Nov 2011 17:18:00 +0000 (+0200) Subject: Match reading properly X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=0dd9283ba2b8da923c9e1ccab1c9591f0535e331;p=voretournament%2Fvoretournament.git Match reading properly --- diff --git a/data/qcsrc/client/Main.qc b/data/qcsrc/client/Main.qc index 154ac152..bc4c745c 100644 --- a/data/qcsrc/client/Main.qc +++ b/data/qcsrc/client/Main.qc @@ -1061,8 +1061,8 @@ void Ent_Init() armor_max = ReadCoord(); teamheal_max = ReadCoord(); - g_power = ReadCoord(); - g_power_reboot = ReadCoord(); + g_power = ReadShort(); + g_power_reboot = ReadShort(); if(!postinit) PostInit(); diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 61d7e8f2..40171815 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3181,6 +3181,10 @@ void Sbar_Draw (void) Sbar_PrintStomachboardItemPred(bottomleft - '-76 150 0', pred); } +// if(getstati(STAT_HEALTH) > 0) +// if(getstati(STAT_ARMOR) < g_power) +// return; + // draw status, scores, timer, and ring Sbar_Status(); Sbar_Score();