[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kpat
From: Parker Coates <parker.coates () kdemail ! net>
Date: 2012-02-15 4:45:38
Message-ID: 20120215044538.98B0CAC895 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1280178 by coates:
Allow autodropping only when the redo stack is empty.
If there are states in the redo stack, there's a pretty good chance
that the user would like to keep them, but autodropping would replace
them with a trivial move. This isn't an issue in normal play, but can
come up when the user plays with autodrop disabled, misses some drops,
enables autodrop and then undoes back a few states.
M +1 -1 dealer.cpp
--- trunk/KDE/kdegames/kpat/dealer.cpp #1280177:1280178
@@ -1424,7 +1424,7 @@
if ( !isDemoActive() && !isCardAnimationRunning() && d->solver )
startSolver();
- if ( autoDropEnabled() && !isDropActive() && !isDemoActive() )
+ if ( autoDropEnabled() && !isDropActive() && !isDemoActive() && d->redoStack.isEmpty() )
{
if ( d->interruptAutoDrop )
d->interruptAutoDrop = false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic