D27336: Fix sometimes two moves being counted as one
Fabian Kosmale
noreply at phabricator.kde.org
Wed Feb 12 18:41:41 GMT 2020
fabiank added a comment.
So I think this depends in part on whether we want to have an atomic undo/redo for automatic moves. With your change, every single move in the auto move will be put on the undo stack. The behaviour before was that they were all composed into one "big" move.
If we want to keep the existing behaviour, we would need to modify DealerScene::moveCount() to changes.size() of the undo stack elements and m_currentState into account.
I'm also not sure if auto moves count in all games. So if we decide to keep the current undo behaviour, maybe moveCount should also be virtual, with most classes using the existing implementation, and Freecell doing some special accounting.
REPOSITORY
R410 KPatience
REVISION DETAIL
https://phabricator.kde.org/D27336
To: aacid, #kde_games
Cc: fabiank, piotrkakol, shlomif, yurchor, kde-games-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20200212/6d8fc375/attachment.html>
More information about the kde-games-devel
mailing list