Let -oneClickMove also work in EditGame mode
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 27 Oct 2010 18:04:01 +0000 (20:04 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 28 Oct 2010 09:08:02 +0000 (11:08 +0200)
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.

backend.c

index ea13ca8..d94da90 100644 (file)
--- 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;
     }