From: H.G.Muller Date: Wed, 20 Jan 2016 19:37:52 +0000 (+0100) Subject: Prevent changing time control during game (XB) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8ec767d2d69df7174aaa966157fb6c347046ead7;p=xboard.git 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. --- 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;