From 709cb52de7fca9bf94c2dd865acbade6b57e0a91 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 24 Dec 2011 23:37:31 +0100 Subject: [PATCH] extract serverflags from the stat --- qcsrc/client/Main.qc | 2 -- qcsrc/client/View.qc | 1 + qcsrc/server/cl_client.qc | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 8c7c6bc0c..a03eb5857 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -1195,8 +1195,6 @@ void Ent_Init() nex_scope = !ReadByte(); rifle_scope = !ReadByte(); - serverflags = ReadByte(); - minelayer_maxmines = ReadByte(); hagar_maxrockets = ReadByte(); diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index ac2f12cb5..65c9fe31c 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -373,6 +373,7 @@ void CSQC_UpdateView(float w, float h) float a; hud = getstati(STAT_HUD); + serverflags = getstati(STAT_ITEMS, 28, 4); if(checkextension("DP_CSQC_MINFPS_QUALITY")) view_quality = getproperty(VF_MINFPS_QUALITY); diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 9ddcaabac..3cc16f618 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -959,7 +959,6 @@ float ClientInit_SendEntity(entity to, float sf) WriteCoord(MSG_ENTITY, self.ebouncestop); // g_balance_grenadelauncher_bouncestop WriteByte(MSG_ENTITY, autocvar_g_balance_nex_secondary); // client has to know if it should zoom or not WriteByte(MSG_ENTITY, autocvar_g_balance_rifle_secondary); // client has to know if it should zoom or not - WriteByte(MSG_ENTITY, serverflags); // client has to know if it should zoom or not WriteByte(MSG_ENTITY, autocvar_g_balance_minelayer_limit); // minelayer max mines WriteByte(MSG_ENTITY, autocvar_g_balance_hagar_secondary_load_max); // hagar max loadable rockets WriteCoord(MSG_ENTITY, autocvar_g_trueaim_minrange); -- 2.39.2