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
|
// 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user