X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=e20d2e40ad582a7619d1719e77c6f9e388e9690a;hb=faf83d9ada6e3cdfee3f02dbe5140332924ac61f;hp=7ffe59df8517cb72390671185ed9cfc713c1c1c5;hpb=e38163d671e465c9f7b23aa70d7700e124e84409;p=xboard.git diff --git a/moves.c b/moves.c index 7ffe59d..e20d2e4 100644 --- a/moves.c +++ b/moves.c @@ -1456,8 +1456,8 @@ LegalityTest (Board board, int flags, int rf, int ff, int rt, int ft, int promoC /* [HGM] Cobra and Falcon are wildcard pieces; consider all their moves legal */ /* (perhaps we should disallow moves that obviously leave us in check?) */ - if(piece == WhiteFalcon || piece == BlackFalcon || - piece == WhiteCobra || piece == BlackCobra) + if((piece == WhiteFalcon || piece == BlackFalcon || + piece == WhiteCobra || piece == BlackCobra) && gameInfo.variant != VariantChu) return CheckTest(board, flags, rf, ff, rt, ft, FALSE) ? IllegalMove : NormalMove; cl.rf = rf;