From a865647eae2368546000355cd9fb89e788014df5 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Mon, 14 Dec 2020 17:52:59 -0700 Subject: [PATCH] Non-players move instantly while sliding --- js/game.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/game.js b/js/game.js index 77a626c..d18bac8 100644 --- a/js/game.js +++ b/js/game.js @@ -956,8 +956,14 @@ export class Level { if (actor.slide_mode && all_blocked) { this._handle_slide_bonk(actor); } + + // Non-players move instantly while sliding, without waiting for the movement pass + if (actor.slide_mode) { + this.attempt_step(actor, actor.direction); + } } + // FIXME can probably clean this up a decent bit now _handle_slide_bonk(actor) { if (actor.slide_mode === 'ice') { // Actors on ice turn around when they hit something