Implement castling for variant CRC
[xboard.git] / moves.c
diff --git a/moves.c b/moves.c
index 8ca57be..7835bc9 100644 (file)
--- a/moves.c
+++ b/moves.c
@@ -854,7 +854,7 @@ int GenLegal(board, flags, epfile, castlingRights, 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 */