aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-31 15:25:23 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-31 15:25:23 +0100
commit7f31f861f656c867ba11cf2afb7d2fa22aeb6dbb (patch)
tree234b32a9a2b50fa4d9e9d190a17e049298f01d0f /FICS/playerdb.c
parent2eb2efd57d01a1eb3ddde74c22e956c65f941608 (diff)
Reformatted player_new_pendfrom()
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 3882eda..0be118b 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1433,12 +1433,15 @@ PUBLIC int player_find_pendfrom(int p, int p1, int type)
return -1;
}
-PUBLIC int player_new_pendfrom(int p)
+PUBLIC int
+player_new_pendfrom(int p)
{
- if (parray[p].num_from >= MAX_PENDING)
- return -1;
- parray[p].num_from++;
- return parray[p].num_from - 1;
+ if (parray[p].num_from >= MAX_PENDING)
+ return -1;
+
+ parray[p].num_from++;
+
+ return (parray[p].num_from - 1);
}
PUBLIC int