From c6c3ff2d71777e3a8630fb91f7d042c1d2be9e14 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 3 Jan 2021 14:06:04 -0700 Subject: [PATCH] Fix losing slide mode when teleporting on a yellow teleport you just dropped --- js/game.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/game.js b/js/game.js index 65d58b2..99a150a 100644 --- a/js/game.js +++ b/js/game.js @@ -1648,6 +1648,11 @@ export class Level extends LevelInterface { return; } + // Explicitly set us as teleport sliding, since in some very obscure cases (auto-dropping a + // yellow teleporter because you picked up an item with a full inventory and immediately + // teleporting through it) it may not have been applied + this.make_slide(actor, 'teleport'); + let original_direction = actor.direction; let success = false; let dest, direction;