Prevent out-of-turn grabbing of piece in analysis mode
[xboard.git] / 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;