From 7f31f861f656c867ba11cf2afb7d2fa22aeb6dbb Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 15:25:23 +0100 Subject: Reformatted player_new_pendfrom() --- FICS/playerdb.c | 13 ++++++++----- 1 file 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 -- cgit v1.2.3