]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
extract serverflags from the stat
authorRudolf Polzer <divverent@alientrap.org>
Sat, 24 Dec 2011 22:37:31 +0000 (23:37 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 24 Dec 2011 22:38:04 +0000 (23:38 +0100)
qcsrc/client/Main.qc
qcsrc/client/View.qc
qcsrc/server/cl_client.qc

index 8c7c6bc0c7a47509695dd131d48682dca0fdf4f8..a03eb58579a83f9a7227011cae31f5e955c49bd6 100644 (file)
@@ -1195,8 +1195,6 @@ void Ent_Init()
        nex_scope = !ReadByte();
        rifle_scope = !ReadByte();
 
-       serverflags = ReadByte();
-
        minelayer_maxmines = ReadByte();
 
        hagar_maxrockets = ReadByte();
index ac2f12cb52a9eba1196579b8616b4a6631d6d53a..65c9fe31c7fbbb2808007de9e73a5f6ced69ebb8 100644 (file)
@@ -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);
index 9ddcaabac3fb991128d2c9c49337d0a189c59409..3cc16f618094c80f11a30cd60cb3b3c1ff0d9b9f 100644 (file)
@@ -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);