From 494c14427dd2854d928019558e1cf8f87ba30ca7 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 4 Jan 2017 20:40:08 +0100 Subject: [PATCH] Fix ICS Crazyhouse play The new way to associate promoted partners to pieces had woken up a latent bug in the code that determined whether pieces in the ICS board are promoted Pawns. This led to Pawns appearing out of nowhere on squares evacuated by white Pawns. --- backend.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.c b/backend.c index b7f36b2..7cc8f9c 100644 --- a/backend.c +++ b/backend.c @@ -4907,7 +4907,7 @@ ParseBoard12 (char *string) && gameInfo.variant != VariantGrand&& gameInfo.variant != VariantSChess) // inherit info that ICS does not give from previous board for(k=0; k= BlackPawn && old < BlackCannon) boards[moveNum][k][j] = PROMOTED(old); // choose correct type of Gold in promotion else boards[moveNum][k][j] = old; // preserve type of Gold - } else if((old == WhitePawn || old == BlackPawn) && new != EmptySquare) // Pawn promotions (but not e.p.capture!) + } else if(old == WhitePawn || old == BlackPawn) // Pawn promotions (but not e.p.capture!) boards[moveNum][k][j] = PROMOTED(new); // use non-primordial representation of chosen piece } } else { -- 1.7.0.4