Add a hack to fix mapinfo weaponstart settemps not working
authorMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 01:38:09 +0000 (12:38 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 01:38:09 +0000 (12:38 +1100)
qcsrc/common/weapons/weapons.qc
qcsrc/server/miscfunctions.qc

index 4f11fc3..284d981 100644 (file)
@@ -112,7 +112,7 @@ void register_weapon(
        e.netname = refname;
        e.message = wepname;
 
-       #ifndef MENUQC
+       #ifdef CSQC
        func(WR_INIT);
        #endif
 }
index e6fda39..81306a8 100644 (file)
@@ -1028,6 +1028,10 @@ void readlevelcvars(void)
        if (!warmup_stage)
                game_starttime = time + cvar("g_start_delay");
 
+       float i;
+       for(i = WEP_FIRST; i <= WEP_LAST; ++i)
+               WEP_ACTION(i, WR_INIT);
+
        readplayerstartcvars();
 }