X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=d0f6cfb6b0d02349d1cd2ea4815ec6b725220971;hb=b5529b539614b61fa62d9f6cc374f335e7103024;hp=8df780b01c600489fc75fcc48536a87597fdce7a;hpb=7be221b22bc0e10fa8c2b71b6506398d1f42cb0f;p=xboard.git diff --git a/board.c b/board.c index 8df780b..d0f6cfb 100644 --- a/board.c +++ b/board.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -604,12 +604,16 @@ AnimateMove (Board board, int fromX, int fromY, int toX, int toY) Pnt frames[kFactor * 2 + 1]; int nFrames, startColor, endColor; + if(killX >= 0 && IS_LION(board[fromY][fromX])) Roar(); + /* Are we animating? */ if (!appData.animate || appData.blindfold) return; if(board[toY][toX] == WhiteRook && board[fromY][fromX] == WhiteKing || - board[toY][toX] == BlackRook && board[fromY][fromX] == BlackKing) + board[toY][toX] == BlackRook && board[fromY][fromX] == BlackKing || + board[toY][toX] == WhiteKing && board[fromY][fromX] == WhiteRook || // [HGM] seirawan + board[toY][toX] == BlackKing && board[fromY][fromX] == BlackRook) return; // [HGM] FRC: no animtion of FRC castlings, as to-square is not true to-square if (fromY < 0 || fromX < 0 || toX < 0 || toY < 0) return;