X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=663660c1d140ca1f965f118d1c7ace4303ebe9e0;hb=fc95d91428ac0e5327b7d2a9a49188948dc0572e;hp=12f9b63ddba1e383c96018323498365255557c75;hpb=e2af238da55eb199526259f94c2503e6c1d75580;p=xboard.git diff --git a/moves.c b/moves.c index 12f9b63..663660c 100644 --- a/moves.c +++ b/moves.c @@ -855,7 +855,7 @@ int GenLegal(board, flags, callback, closure) } } - if(gameInfo.variant == VariantFischeRandom) { + if(flags & F_FRC_TYPE_CASTLING) { /* generate all potential FRC castling moves (KxR), ignoring flags */ /* [HGM] test if the Rooks we find have castling rights */