From 0b05fd7e45fb28f7b951b9cccb35caf69ffd703e Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 14:28:54 +0100 Subject: Reformatted player_is_observe() --- FICS/playerdb.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 70f7a19..bc0f939 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1666,18 +1666,19 @@ PUBLIC int player_withdraw_offers(int p, int p1, int offerType) } -PUBLIC int player_is_observe(int p, int g) +PUBLIC int +player_is_observe(int p, int g) { - int i; + int i; - for (i = 0; i < parray[p].num_observe; i++) { - if (parray[p].observe_list[i] == g) - break; - } - if (i == parray[p].num_observe) - return 0; - else - return 1; + for (i = 0; i < parray[p].num_observe; i++) { + if (parray[p].observe_list[i] == g) + break; + } + if (i == parray[p].num_observe) + return 0; + else + return 1; } PUBLIC int -- cgit v1.2.3