Aborting a demo by clicking on the game board creates a new game but does not set the redo state, which makes redo available even though there is nothing to redo. Clicking redo at this point does not appear to do anything except updating the removed tiles counter and making undo available, clicking undo will create an empty tile on the top left corner of the game board. Reproducible: Always Steps to Reproduce: 1. Select Demo in the Move menu 2. Click anywhere on the game board to abort the demo Actual Results: A new game is created with undo available. Expected Results: Undo should not be available until after the first move
Created attachment 90105 [details] Initialize GameData allow_undo and allow_redo from constructor The problem is that allow_redo (and allow_undo and) are not initialized by the GameData constructor, so if we create a new instance without setting it we don't know what we will get.
This appeasr to be fixed in current master branch. Please test the master version and ropen this in case it is not fixed properly.