Slightly reduce memory usage (?) for undoing transmutation
This commit is contained in:
1 parent
f417162f6f
commit
fd590f8353
1 file changed
+1
-2
+1
-2
@@ -2814,8 +2814,7 @@ export class Level extends LevelInterface {
|
||||
});
|
||||
}
|
||||
else {
|
||||
tile.type = new_type;
|
||||
this._push_pending_undo(() => tile.type = old_type);
|
||||
this._set_tile_prop(tile, 'type', new_type);
|
||||
}
|
||||
|
||||
// For transmuting into an animation, set up the timer immediately
|
||||
|
||||
Reference in new issue
Block a user