slaytheweb icon indicating copy to clipboard operation
slaytheweb copied to clipboard

Can't undo on a saved game

Open oskarrough opened this issue 6 years ago • 2 comments

The history of your turns and state, which makes it possible to undo, is stored in the ActionManager. This is not part of the game state, so you can't undo a saved game.

If we really want this to be possible, we have to move the history to the game state.

oskarrough avatar Mar 28 '20 20:03 oskarrough

Would be solved if we do #68

oskarrough avatar Apr 11 '20 13:04 oskarrough

I believe the saved game state somehow strips out game.past.list, which contains the queue used to undo. This is why there is nothing to undo.

oskarrough avatar Sep 17 '23 16:09 oskarrough