Sliding actors don't get to make a decision
This commit is contained in:
parent
dd287284ef
commit
9b9536d586
@ -498,8 +498,8 @@ export class Level {
|
||||
// Check which of those directions we *can*, probably, move in
|
||||
// TODO i think player on force floor will still have some issues here
|
||||
if (direction_preference) {
|
||||
// Players always move the way they want, even if blocked
|
||||
if (actor.type.is_player) {
|
||||
// Players and sliding actors always move the way they want, even if blocked
|
||||
if (actor.type.is_player || actor.slide_mode) {
|
||||
actor.decision = direction_preference[0];
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user