Fix Grilled Cheese Sandwich teleporting player out of bounds after a death exit.

This commit is contained in:
Mari the Deer 2023-07-04 13:51:25 +02:00
commit 8522b47e69
2 changed files with 7 additions and 2 deletions

View file

@ -127,6 +127,11 @@ Class GrilledCheeseSandwich : Inventory
}
Owner.Teleport(safepos,safeangle,0);
}
override void Travelled()
{
Super.Travelled();
dteleport = 0; // ensure we don't teleport immediately after a death exit (yes, this can happen)
}
override void DoEffect()
{
Super.DoEffect();