From bdb4a51c73765785a69f2cbe0cfca0fcbd0775ee Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 31 Jan 2015 13:40:58 +1100 Subject: [PATCH] Possibly fix issue with old weapon names and target_items --- qcsrc/server/t_items.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2