]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix the g_overkill_filter_* cvars
authorFreddy <schro.sb@gmail.com>
Wed, 12 Oct 2016 21:49:43 +0000 (23:49 +0200)
committerFreddy <schro.sb@gmail.com>
Wed, 12 Oct 2016 21:49:43 +0000 (23:49 +0200)
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc

index 86bd70debe44a7f6369f43cd996a6f04f9037c67..d47da6c3c38ed43c3949eed8042f94941d8beef9 100644 (file)
@@ -308,14 +308,14 @@ MUTATOR_HOOKFUNCTION(ok, FilterItem)
        if(item.ok_item)
                return false;
 
-       switch(item.items)
+       switch(item.itemdef)
        {
-               case ITEM_HealthMega.m_itemid: return autocvar_g_overkill_filter_healthmega;
-               case ITEM_ArmorMedium.m_itemid: return autocvar_g_overkill_filter_armormedium;
+               case ITEM_HealthMega: return autocvar_g_overkill_filter_healthmega;
+               case ITEM_ArmorMedium: return autocvar_g_overkill_filter_armormedium;
                // WARNING: next two statements look wrong because of inconsistency between cvar names and code
                // armor cvars need renaming to be consistent with their health counterparts
-               case ITEM_ArmorLarge.m_itemid: return autocvar_g_overkill_filter_armorbig;
-               case ITEM_ArmorMega.m_itemid: return autocvar_g_overkill_filter_armorlarge;
+               case ITEM_ArmorLarge: return autocvar_g_overkill_filter_armorbig;
+               case ITEM_ArmorMega: return autocvar_g_overkill_filter_armorlarge;
        }
 
        return true;