From: Freddy Date: Mon, 17 Oct 2016 23:49:12 +0000 (+0200) Subject: Replace m_itemid with itemdef for the melee_only item filter X-Git-Tag: xonotic-v0.8.2~450^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c042a46022555412f16d621986acc17deb45c27b;p=xonotic%2Fxonotic-data.pk3dir.git Replace m_itemid with itemdef for the melee_only item filter --- diff --git a/qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc b/qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc index a83474998..b7b160075 100644 --- a/qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc +++ b/qcsrc/common/mutators/mutator/melee_only/sv_melee_only.qc @@ -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; }