From 883c71100a75bd517f5d813b19f54041409fbeec Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 11 Mar 2021 00:13:35 +0100 Subject: [PATCH] Delete g_instagib_items and g_overkill_items when their relative mutators are removed --- qcsrc/common/mutators/mutator/instagib/sv_instagib.qh | 1 + qcsrc/common/mutators/mutator/overkill/sv_overkill.qh | 1 + 2 files changed, 2 insertions(+) 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); } } -- 2.39.2