From: Mario Date: Fri, 1 Dec 2017 01:50:49 +0000 (+1000) Subject: Don't update the weapon's classname on spawn (we still need the old name for compatib... X-Git-Tag: xonotic-v0.8.5~2419 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5222d6186213b76b42ee39ac401df538e37c9ffe;p=xonotic%2Fxonotic-data.pk3dir.git Don't update the weapon's classname on spawn (we still need the old name for compatibility) --- 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)