From 5222d6186213b76b42ee39ac401df538e37c9ffe Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 1 Dec 2017 11:50:49 +1000 Subject: [PATCH] Don't update the weapon's classname on spawn (we still need the old name for compatibility) --- qcsrc/server/weapons/spawning.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/weapons/spawning.qc b/qcsrc/server/weapons/spawning.qc index d47351cb3..d33fdaac0 100644 --- a/qcsrc/server/weapons/spawning.qc +++ b/qcsrc/server/weapons/spawning.qc @@ -30,7 +30,7 @@ void weapon_defaultspawnfunc(entity this, Weapon e) { Weapon wpn = e; e = wpn = wpn.m_spawnfunc_hookreplace(wpn, this); - this.classname = wpn.m_canonical_spawnfunc; + //this.classname = wpn.m_canonical_spawnfunc; if (!Item_IsLoot(this) && !this.m_isreplaced) { if (e.spawnflags & WEP_FLAG_MUTATORBLOCKED) -- 2.39.2