From: H.G.Muller Date: Sun, 6 Mar 2016 22:45:54 +0000 (+0100) Subject: Prevent out-of-turn grabbing of piece in analysis mode X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=f856eb7ac5fbeec648f7fd27013905f0a5a26616 Prevent out-of-turn grabbing of piece in analysis mode In Analyze modeit was possible to grab pieces for dragging of the side that did not have the move. --- diff --git a/backend.c b/backend.c index f2fc3f3..c487dd1 100644 --- 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;