From e64a18cc27985135ab3da7a20ce18c1fbacf97b1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 24 Jan 2015 12:38:09 +1100 Subject: [PATCH] Add a hack to fix mapinfo weaponstart settemps not working --- qcsrc/common/weapons/weapons.qc | 2 +- qcsrc/server/miscfunctions.qc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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(); } -- 2.39.2