From: Mario Date: Sat, 31 Jan 2015 02:40:58 +0000 (+1100) Subject: Possibly fix issue with old weapon names and target_items X-Git-Tag: xonotic-v0.8.1~141^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bdb4a51c73765785a69f2cbe0cfca0fcbd0775ee;p=xonotic%2Fxonotic-data.pk3dir.git Possibly fix issue with old weapon names and target_items --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 4455d3fb4..d4af7e3fd 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -1315,6 +1315,7 @@ void spawnfunc_target_items (void) { float n, i, j; entity e; + string s; self.use = target_items_use; if(!self.strength_finished) @@ -1353,7 +1354,8 @@ void spawnfunc_target_items (void) for(j = WEP_FIRST; j <= WEP_LAST; ++j) { e = get_weaponinfo(j); - if(argv(i) == e.netname) + s = W_UndeprecateName(argv(i)); + if(s == e.netname) { self.weapons |= WepSet_FromWeapon(j); if(self.spawnflags == 0 || self.spawnflags == 2)