]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Get rid of networking a cvar by doing another check instead
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 21:30:25 +0000 (00:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 21:30:25 +0000 (00:30 +0300)
data/qcsrc/client/Main.qc
data/qcsrc/client/main.qh
data/qcsrc/client/sbar.qc
data/qcsrc/server/cl_client.qc

index 5b5a22174724361fcc93144a7e6b4c2abca939f6..ae4ab68ef5586db613f0a9a1b00fc99fa700b4ed 100644 (file)
@@ -1014,7 +1014,6 @@ void Ent_Init()
        g_weaponswitchdelay = ReadByte() / 255.0;\r
 \r
        g_balance_vore_swallow_limit = ReadCoord();\r
-       g_vore_showpreyhealth = ReadCoord();\r
 \r
        if(!postinit)\r
                PostInit();\r
index 13aa153bea77ef45409c4179833d8431a6ea80a7..374746d1a6fb0fe36ebed64b7e44177cd57f1a7d 100644 (file)
@@ -164,7 +164,7 @@ void centerprint(string strMessage);
 float armorblockpercent;\r
 float g_weaponswitchdelay;\r
 \r
-float g_balance_vore_swallow_limit, g_vore_showpreyhealth;\r
+float g_balance_vore_swallow_limit;\r
 \r
 //grabbers\r
 float calledgrabbers;\r
index 0c95d1609bcdb516a689be910cafcbdd79d93282..50d5245668dc9104a9020cf89a0aefc3f17c663f 100644 (file)
@@ -985,7 +985,7 @@ void Sbar_PrintStomachboardItem(vector pos, entity pl)
                }\r
 \r
                if(field == ST_HEALTH)\r
-               if(g_vore_showpreyhealth) {\r
+               if(stof(str) > 0) {\r
                        pos_x += 138;\r
                                if(pl.sv_entnum == player_localentnum - 1 || (spectatee_status && pl.sv_entnum == spectatee_status - 1))\r
                                        drawcolorcodedstring(pos, "self", '11 11 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
index aeb07d95a8dcea25bc8a2453b40306937e870058..313c79959a138823be046a5306573274caa739a8 100644 (file)
@@ -1014,7 +1014,6 @@ float ClientInit_SendEntity(entity to, float sf)
        WriteByte(MSG_ENTITY, cvar("g_balance_weaponswitchdelay") * 255.0);\r
 \r
        WriteCoord(MSG_ENTITY, cvar("g_balance_vore_swallow_limit"));\r
-       WriteCoord(MSG_ENTITY, cvar("g_vore_showhealth"));\r
        return TRUE;\r
 }\r
 \r