From: H.G.Muller Date: Mon, 4 Jul 2022 17:57:25 +0000 (+0200) Subject: Fix null move X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=43f7a4356bbfb306b6a5e4900277fab16e3a6ccd;p=xboard.git Fix null move --- diff --git a/backend.c b/backend.c index 9460ad0..c56b796 100644 --- a/backend.c +++ b/backend.c @@ -7444,8 +7444,10 @@ FinishMove (ChessMove moveType, int fromX, int fromY, int toX, int toY, int prom bookHit = SendMoveToBookUser(forwardMostMove-1, &first, FALSE); first.maybeThinking = TRUE; } else if(fromY == DROP_RANK && fromX == EmptySquare) { + if(PosFlags(0) & F_NULL_MOVE) SendMoveToProgram(currentMove, &first); else { if(!first.useSetboard) SendToProgram("undo\n", &first); // kludge to change stm in engines that do not support setboard SendBoard(&first, currentMove+1); + } if(second.analyzing) { if(!second.useSetboard) SendToProgram("undo\n", &second); SendBoard(&second, currentMove+1);