X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=319a33246c422749cb5ef5a4640ab7c263dcf5ab;hb=6bd78a44338ad11ff03a2ac554e6fd5bd5ed8418;hp=8ca57beaa3b1305f618a206a0c87d07b6865510b;hpb=552c3c0e0c46e03d572257d7224213c888cdfb0f;p=xboard.git diff --git a/moves.c b/moves.c index 8ca57be..319a332 100644 --- a/moves.c +++ b/moves.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -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 */