Fix issue of interrupted conversation in follow-mode

This commit is contained in:
danb 2021-11-18 12:23:10 +01:00 committed by PizZaKatZe
parent 7c7144527c
commit 372dda792f

View File

@ -100,6 +100,8 @@ export class Player extends Character {
}
private followStep(activeEvents: ActiveEventList, delta: number) {
let moving = false;
if (this.follow === null) {
return;
}
@ -137,10 +139,12 @@ export class Player extends Character {
this.follow.direction = PlayerAnimationDirections.Down;
}
}
moving = true;
}
this.emit(hasMovedEventName, {
moving: true,
moving: moving,
direction: this.follow.direction,
x: this.x,
y: this.y,
@ -148,8 +152,8 @@ export class Player extends Character {
this.previousDirection = this.follow.direction;
this.wasMoving = true;
userMovingStore.set(true);
this.wasMoving = moving;
userMovingStore.set(moving);
}
moveUser(delta: number): void {