X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=663660c1d140ca1f965f118d1c7ace4303ebe9e0;hb=0cba5b3ac1360105f1ac24aba3c848adfa87f009;hp=12f9b63ddba1e383c96018323498365255557c75;hpb=5fe17e1636319fc8133308a2587199ac5b6c66c1;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 */