From: Rudolf Polzer Date: Sat, 24 Dec 2011 22:44:00 +0000 (+0100) Subject: Revert "extract serverflags from the stat" because an engine bug breaks it X-Git-Tag: xonotic-v0.6.0~74^2~54 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=e261aef5bd6e5bfe322e29f004ba505e4368ced8;p=xonotic%2Fxonotic-data.pk3dir.git Revert "extract serverflags from the stat" because an engine bug breaks it This reverts commit 709cb52de7fca9bf94c2dd865acbade6b57e0a91. --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index a03eb5857..8c7c6bc0c 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -1195,6 +1195,8 @@ 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 65c9fe31c..ac2f12cb5 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -373,7 +373,6 @@ 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 3cc16f618..9ddcaabac 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -959,6 +959,7 @@ 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);