From da2f83eb30a2587abee372940458525102245369 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 5 May 2024 18:03:43 +0200 Subject: Reformatted legal_queen_move() --- FICS/movecheck.c | 10 ++++------ 1 file 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 */ -- cgit v1.2.3