aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
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