FPChess: fix in the move validation.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4137 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
brian-ch
2015-05-17 14:49:32 +00:00
parent 0acdd76ea1
commit db9a7563f1

View File

@ -851,8 +851,7 @@ end;
function TChessGame.QueenHasValidMove(ASquare: TPoint): boolean;
begin
Result:=false;
if (RookHasValidMove(ASquare) and BishopHasValidMove(ASquare)) then exit(true);
result:=false;
if (RookHasValidMove(ASquare) or BishopHasValidMove(ASquare)) then exit(true);
end;
function TChessGame.KingHasValidMove(ASquare: TPoint): boolean;