From 8ec767d2d69df7174aaa966157fb6c347046ead7 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 20 Jan 2016 20:37:52 +0100 Subject: [PATCH] Prevent changing time control during game (XB) An attempt to pop up the Time Control Options dialog during a game will now be met with an Error popup to say it cannot be done, like in WinBoard. Before it would reset the game. --- dialogs.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dialogs.c b/dialogs.c index 4b52d26..ea0ece7 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1671,6 +1671,10 @@ SetTcType (int n) void TimeControlProc () { + if(gameMode != BeginningOfGame) { + DisplayError(_("Changing time control during a game is not implemented"), 0); + return; + } tmpMoves = appData.movesPerSession; tmpInc = appData.timeIncrement; if(tmpInc < 0) tmpInc = 0; tmpOdds1 = tmpOdds2 = 1; tcType = 0; -- 1.7.0.4