Commit 37f1e217 authored by Denis Kuplyakov's avatar Denis Kuplyakov

Improved last undo marker after undo

Now we are simply restoring m_changedChips from m_undoStack.
parent 56b8791a
......@@ -176,7 +176,10 @@ int KReversiGame::undo()
kDebug() << "Undone" << movesUndone << "moves.";
//kDebug() << "Current player changed to" << (m_curPlayer == White ? "White" : "Black" );
m_changedChips.clear(); // clearing last move mark
if (!m_undoStack.empty())
m_changedChips = m_undoStack.top();
else
m_changedChips.clear();
emit boardChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment