Commit 00c9317e authored by Timothée Giet's avatar Timothée Giet
Browse files

checkers, fix moving opponent piece

parent ae417687
......@@ -315,7 +315,8 @@ ActivityBase {
MouseArea {
id: dragArea
anchors.fill: parent
enabled: !items.gameOver
enabled: !items.gameOver && ((items.blackTurn && !parent.isWhite) || (!items.blackTurn && parent.isWhite))
&& !items.trigComputerMove.running
drag.target: parent
onPressed: {
piece.Drag.keys = ['acceptMe']
......
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