Sliding actors don't get to make a decision

This commit is contained in:
Eevee (Evelyn Woods) committed 2020-09-10 17:13:57 -06:00
1 parent dd287284ef
commit 9b9536d586
1 file changed
+2 -2
+2 -2
View File
@@ -498,8 +498,8 @@ export class Level {
// Check which of those directions we *can*, probably, move in // Check which of those directions we *can*, probably, move in
// TODO i think player on force floor will still have some issues here // TODO i think player on force floor will still have some issues here
if (direction_preference) { if (direction_preference) {
// Players always move the way they want, even if blocked // Players and sliding actors always move the way they want, even if blocked
if (actor.type.is_player) { if (actor.type.is_player || actor.slide_mode) {
actor.decision = direction_preference[0]; actor.decision = direction_preference[0];
continue; continue;
} }