fix a rewind bug in non turn based mode
Was caused by not making these setters undoable.
This commit is contained in:
parent
30a145599c
commit
d2e900dc3a
@ -832,10 +832,9 @@ export class Level {
|
|||||||
if (actor.cell === goal_cell)
|
if (actor.cell === goal_cell)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// TODO undo this stuff?
|
this._set_prop(actor, 'previous_cell', actor.cell);
|
||||||
actor.previous_cell = actor.cell;
|
this._set_prop(actor, 'animation_speed', speed);
|
||||||
actor.animation_speed = speed;
|
this._set_prop(actor, 'animation_progress', 0);
|
||||||
actor.animation_progress = 0;
|
|
||||||
|
|
||||||
let original_cell = actor.cell;
|
let original_cell = actor.cell;
|
||||||
this.remove_tile(actor);
|
this.remove_tile(actor);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user