]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't replace bullets with shells when sv_q3acompat_machineshotgunswap is enabled
authorMario <mario@smbclan.net>
Fri, 30 Aug 2019 17:31:04 +0000 (03:31 +1000)
committerMario <mario@smbclan.net>
Fri, 30 Aug 2019 17:31:04 +0000 (03:31 +1000)
qcsrc/common/items/item/ammo.qc

index 3a13a1f81855c51c2eaeea4bea5adda6e10c07b3..739d94aca1e8b3fb9954ce8a278570f96c6363cf 100644 (file)
@@ -2,15 +2,6 @@
 
 #ifdef SVQC
 
-METHOD(Bullets, m_spawnfunc_hookreplace, GameItem(Bullets this, entity e))
-{
-       if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
-       {
-               return ITEM_Shells;
-       }
-       return this;
-}
-
 METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e))
 {
        if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))