From: terencehill Date: Wed, 10 Mar 2021 23:13:35 +0000 (+0100) Subject: Delete g_instagib_items and g_overkill_items when their relative mutators are removed X-Git-Tag: xonotic-v0.8.5~507^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=883c71100a75bd517f5d813b19f54041409fbeec;p=xonotic%2Fxonotic-data.pk3dir.git Delete g_instagib_items and g_overkill_items when their relative mutators are removed --- diff --git a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qh b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qh index 5467a44ee..c4b9fcc19 100644 --- a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qh +++ b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qh @@ -51,5 +51,6 @@ REGISTER_MUTATOR(mutator_instagib, autocvar_g_instagib && !MapInfo_LoadedGametyp ITEM_VaporizerCells.spawnflags |= ITEM_FLAG_MUTATORBLOCKED; ITEM_Invisibility.spawnflags |= ITEM_FLAG_MUTATORBLOCKED; ITEM_Speed.spawnflags |= ITEM_FLAG_MUTATORBLOCKED; + IL_DELETE(g_instagib_items); } } diff --git a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qh b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qh index 32f48ea15..650eb0621 100644 --- a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qh +++ b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qh @@ -45,5 +45,6 @@ REGISTER_MUTATOR(ok, expr_evaluate(autocvar_g_overkill) && !MUTATOR_IS_ENABLED(m ITEM_ArmorMedium.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED; ITEM_ArmorBig.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED; ITEM_ArmorMega.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED; + IL_DELETE(g_overkill_items); } }