From: Mario Date: Sat, 24 Jan 2015 01:38:09 +0000 (+1100) Subject: Add a hack to fix mapinfo weaponstart settemps not working X-Git-Tag: xonotic-v0.8.1~148^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e64a18cc27985135ab3da7a20ce18c1fbacf97b1;p=xonotic%2Fxonotic-data.pk3dir.git Add a hack to fix mapinfo weaponstart settemps not working --- diff --git a/qcsrc/common/weapons/weapons.qc b/qcsrc/common/weapons/weapons.qc index 4f11fc3ef..284d9811d 100644 --- a/qcsrc/common/weapons/weapons.qc +++ b/qcsrc/common/weapons/weapons.qc @@ -112,7 +112,7 @@ void register_weapon( e.netname = refname; e.message = wepname; - #ifndef MENUQC + #ifdef CSQC func(WR_INIT); #endif } diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index e6fda399e..81306a8b1 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -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(); }