]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Replace m_itemid with itemdef for the melee_only item filter
authorFreddy <schro.sb@gmail.com>
Mon, 17 Oct 2016 23:49:12 +0000 (01:49 +0200)
committerFreddy <schro.sb@gmail.com>
Mon, 17 Oct 2016 23:49:12 +0000 (01:49 +0200)
qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc

index a8347499841b77d034adb39efac4853400343f29..b7b16007592efd06a38ce822743f1dccf33a3d93 100644 (file)
@@ -17,10 +17,10 @@ MUTATOR_HOOKFUNCTION(melee_only, FilterItem)
 {
        entity item = M_ARGV(0, entity);
 
-       switch (item.items)
+       switch (item.itemdef)
        {
-               case ITEM_HealthSmall.m_itemid:
-               case ITEM_ArmorSmall.m_itemid:
+               case ITEM_HealthSmall:
+               case ITEM_ArmorSmall:
                        return false;
        }