From: Fabian Fichter Date: Fri, 30 Oct 2020 11:04:39 +0000 (+0100) Subject: Remove highlight of passing move in CECP X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=25e48a1cc4a696bebb98b9001c71b77eaec7274c;p=fairystockfish.git Remove highlight of passing move in CECP Input of passing by king move is invalid, so remove it (#192). --- diff --git a/src/xboard.cpp b/src/xboard.cpp index 51b296d..dcd4efd 100644 --- a/src/xboard.cpp +++ b/src/xboard.cpp @@ -127,7 +127,7 @@ void StateMachine::process_command(Position& pos, std::string token, std::istrin for (const auto& m : MoveList(pos)) { Square from = from_sq(m), to = to_sq(m); - if (is_ok(from) && UCI::square(pos, from) == token) + if (is_ok(from) && UCI::square(pos, from) == token && !is_pass(m)) { if (type_of(m) == PROMOTION) promotions |= to;