aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-31 14:28:54 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-31 14:28:54 +0100
commit0b05fd7e45fb28f7b951b9cccb35caf69ffd703e (patch)
treea286ae3443188bb892eeba7badbcc61748a015e8 /FICS/playerdb.c
parent25c73f15fd9147c3a1577acd1ccd4982b14ac439 (diff)
Reformatted player_is_observe()
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c21
1 files changed, 11 insertions, 10 deletions
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