From: H.G. Muller Date: Wed, 27 Oct 2010 18:04:01 +0000 (+0200) Subject: Let -oneClickMove also work in EditGame mode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e9468d50717061047e1dbc5817d0f69b12c291c8;p=xboard.git Let -oneClickMove also work in EditGame mode There is really no reason why people that lke one-clcik moves enough to switch them on would not want to use them too when editing a game. This solves a nast inconsistency, as before it used to work in -ncp mode on the _first_ move, as the mode is then BeginningOfGame, and not yet EditGame, and we do want it to work for BeginningOfGame, as this is also the game mode when you start playing as white. --- diff --git a/backend.c b/backend.c index ea13ca8..d94da90 100644 --- a/backend.c +++ b/backend.c @@ -5875,6 +5875,8 @@ OnlyMove(int *x, int *y, Boolean captures) { case IcsPlayingBlack: if(WhiteOnMove(currentMove)) return FALSE; break; + case EditGame: + break; default: return FALSE; }