aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/movecheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/movecheck.c')
-rw-r--r--FICS/movecheck.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c
index 6dc9e19..d9d1332 100644
--- a/FICS/movecheck.c
+++ b/FICS/movecheck.c
@@ -267,15 +267,13 @@ PRIVATE int legal_rook_move(game_state_t * gs, int ff, int fr, int tf, int tr)
}
}
-PRIVATE int legal_queen_move(game_state_t * gs, int ff, int fr, int tf, int tr)
+PRIVATE int
+legal_queen_move(game_state_t *gs, int ff, int fr, int tf, int tr)
{
- return legal_rook_move(gs, ff, fr, tf, tr) || legal_bishop_move(gs, ff, fr, tf, tr);
+ return (legal_rook_move(gs, ff, fr, tf, tr) ||
+ legal_bishop_move(gs, ff, fr, tf, tr));
}
-/* Ckeck, if square (kf,kr) is attacked by enemy piece.
- * Used in castling from/through check testing.
- */
-
/*
* New one from soso
*/