From 77bfa7993b3deb5e0a4ff95a9b166d56bf04e218 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 2 Apr 2024 22:12:24 +0200 Subject: Reformatted com_fixrank() --- FICS/ratings.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index 2c19907..535ca50 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -905,21 +905,24 @@ PUBLIC int com_statistics(int p, param_list param) return COM_OK; } -PUBLIC int com_fixrank(int p, param_list param) +PUBLIC int +com_fixrank(int p, param_list param) { - int p1, connected; + int p1, connected; - if (!FindPlayer(p, param[0].val.word, &p1, &connected)) - return COM_OK; - UpdateRank(TYPE_BLITZ, parray[p1].name, &parray[p1].b_stats, - parray[p1].name); - UpdateRank(TYPE_STAND, parray[p1].name, &parray[p1].s_stats, - parray[p1].name); - UpdateRank(TYPE_WILD, parray[p1].name, &parray[p1].w_stats, - parray[p1].name); - if (!connected) - player_remove(p1); - return COM_OK; + if (!FindPlayer(p, param[0].val.word, &p1, &connected)) + return COM_OK; + + UpdateRank(TYPE_BLITZ, parray[p1].name, &parray[p1].b_stats, + parray[p1].name); + UpdateRank(TYPE_STAND, parray[p1].name, &parray[p1].s_stats, + parray[p1].name); + UpdateRank(TYPE_WILD, parray[p1].name, &parray[p1].w_stats, + parray[p1].name); + + if (!connected) + player_remove(p1); + return COM_OK; } PUBLIC int -- cgit v1.2.3