]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 4f11fc3ef272ed53c5763b8f420c36553e6e7b68..284d9811df50c44c98205ca041a659162079493d 100644 (file)
@@ -112,7 +112,7 @@ void register_weapon(
        e.netname = refname;
        e.message = wepname;
 
-       #ifndef MENUQC
+       #ifdef CSQC
        func(WR_INIT);
        #endif
 }
index e6fda399e27eb0427e90a241964f623843a54feb..81306a8b1c263497687e155ed7f23f0c0ecf09af 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();
 }