]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't update the weapon's classname on spawn (we still need the old name for compatib...
authorMario <mario@smbclan.net>
Fri, 1 Dec 2017 01:50:49 +0000 (11:50 +1000)
committerMario <mario@smbclan.net>
Fri, 1 Dec 2017 01:50:49 +0000 (11:50 +1000)
qcsrc/server/weapons/spawning.qc

index d47351cb37a727aab87f100d2ccb61ddd98a5824..d33fdaac0d0a4c6592d6935056e3c117686a4d69 100644 (file)
@@ -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)