From 3477d14b964fa4c3944db6510c916b32acc1ea11 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 28 Feb 2018 17:20:55 +0100 Subject: [PATCH] Allow clock click for board clear also with piece menu --- backend.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index 2927c42..86c0f15 100644 --- a/backend.c +++ b/backend.c @@ -16055,7 +16055,7 @@ ClockClick (int which) { // [HGM] code moved to back-end from winboard.c if(which) { // black clock if (gameMode == EditPosition || gameMode == IcsExamining) { - if(!appData.pieceMenu && blackPlaysFirst) EditPositionMenuEvent(ClearBoard, 0, 0); + if(blackPlaysFirst) EditPositionMenuEvent(ClearBoard, 0, 0); SetBlackToPlayEvent(); } else if ((gameMode == AnalyzeMode || gameMode == EditGame || gameMode == MachinePlaysBlack && PosFlags(0) & F_NULL_MOVE && !blackFlag && !shiftKey) && WhiteOnMove(currentMove)) { @@ -16068,7 +16068,7 @@ ClockClick (int which) } } else { // white clock if (gameMode == EditPosition || gameMode == IcsExamining) { - if(!appData.pieceMenu && !blackPlaysFirst) EditPositionMenuEvent(ClearBoard, 0, 0); + if(!blackPlaysFirst) EditPositionMenuEvent(ClearBoard, 0, 0); SetWhiteToPlayEvent(); } else if ((gameMode == AnalyzeMode || gameMode == EditGame || gameMode == MachinePlaysWhite && PosFlags(0) & F_NULL_MOVE && !whiteFlag && !shiftKey) && !WhiteOnMove(currentMove)) { -- 1.7.0.4