aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-31 14:26:24 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-31 14:26:24 +0100
commit25c73f15fd9147c3a1577acd1ccd4982b14ac439 (patch)
treea3bc7c9126ca9d269bcce4a92f5fb5c857ed0d11
parent7761d8ab19d9023de23bf8394300a74e55b440bd (diff)
Reformatted player_add_observe()
-rw-r--r--FICS/playerdb.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 7f12be5..70f7a19 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1680,13 +1680,14 @@ PUBLIC int player_is_observe(int p, int g)
return 1;
}
-PUBLIC int player_add_observe(int p, int g)
+PUBLIC int
+player_add_observe(int p, int g)
{
- if (parray[p].num_observe == MAX_OBSERVE)
- return -1;
- parray[p].observe_list[parray[p].num_observe] = g;
- parray[p].num_observe++;
- return 0;
+ if (parray[p].num_observe == MAX_OBSERVE)
+ return -1;
+ parray[p].observe_list[parray[p].num_observe] = g;
+ parray[p].num_observe++;
+ return 0;
}
PUBLIC int