From: Rudolf Polzer Date: Sat, 24 Dec 2011 22:37:31 +0000 (+0100) Subject: extract serverflags from the stat X-Git-Tag: xonotic-v0.6.0~74^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=709cb52de7fca9bf94c2dd865acbade6b57e0a91;p=xonotic%2Fxonotic-data.pk3dir.git extract serverflags from the stat --- 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);