projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0fbcff4
)
Prevent out-of-turn grabbing of piece in analysis mode
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Sun, 6 Mar 2016 22:45:54 +0000 (23:45 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 8 Mar 2016 18:29:58 +0000 (19:29 +0100)
In Analyze modeit was possible to grab pieces for dragging of the side
that did not have the move.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
f2fc3f3
..
c487dd1
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-6850,6
+6850,7
@@
OKToStartUserMove (int x, int y)
case PlayFromGameFile:
if(!shiftKey || !appData.variations) return FALSE; // [HGM] allow starting variation in this mode
case EditGame:
+ case AnalyzeMode:
if (!white_piece && WhiteOnMove(currentMove)) {
DisplayMoveError(_("It is White's turn"));
return FALSE;