From 314d88545db3f73bd5117fa20c827fbb16e1ebb3 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 5 Apr 2024 13:42:38 +0200 Subject: com_best() if 0 --- FICS/ratings.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index 44eea2c..369a647 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -539,6 +539,45 @@ zero_stats(void) numW = 0; } +#if 0 +PUBLIC int +com_best(int p, param_list param) +{ + pprintf(p, "Standard Blitz Wild\n"); + + for (int i = 0; i < MAX_BEST; i++) { + if (i >= numS && i >= numB) + break; + + if (i < numS) { + pprintf(p, "%4d %-17s ", + bestS[i].rating, + bestS[i].name); + } else { + pprintf(p, " "); + } + + if (i < numB) { + pprintf(p, "%4d %-17s ", + bestB[i].rating, + bestB[i].name); + } else { + pprintf(p, " "); + } + + if (i < numW) { + pprintf(p, "%4d %-17s\n", + bestW[i].rating, + bestW[i].name); + } else { + pprintf(p, "\n"); + } + } + + return COM_OK; +} +#endif + PUBLIC void rating_init(void) { -- cgit v1.2.3