Commit b2a3b9dd authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix undo sometimes making the AI play on wrong turn

If you undo while it's the AI turn to play it would undo the human move
but the AI still thought it was its turn so the play was put on the
human player

BUGS: 351815
parent db1c540a
Pipeline #155477 passed with stage
in 56 seconds
......@@ -612,6 +612,11 @@ void KWin4App::undoMove()
if (mDoc->playedBy(mDoc->getCurrentPlayer())==KGameIO::ProcessIO)
} else {
// Make sure the current player has the turn
// without this it can happen that the AI still think has the turn and plays
// instead of the human player
// Refresh menus
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