]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Delete g_instagib_items and g_overkill_items when their relative mutators are removed
authorterencehill <piuntn@gmail.com>
Wed, 10 Mar 2021 23:13:35 +0000 (00:13 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 10 Mar 2021 23:13:35 +0000 (00:13 +0100)
qcsrc/common/mutators/mutator/instagib/sv_instagib.qh
qcsrc/common/mutators/mutator/overkill/sv_overkill.qh

index 5467a44ee48e2c94dce945d7d5f90fea4c897954..c4b9fcc19330b5c537041ea746e380e0689c65bc 100644 (file)
@@ -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);
        }
 }
index 32f48ea15e292ae6f725c2114d52f02ce4e7a95a..650eb0621914e188ca9a591d6d261e02d1a98335 100644 (file)
@@ -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);
        }
 }