diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-05 13:42:38 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-05 13:42:38 +0200 |
commit | 314d88545db3f73bd5117fa20c827fbb16e1ebb3 (patch) | |
tree | f140bc9ac19c0b0004293d3ab6b0cf51ebc39351 | |
parent | 7bc3d21d975d962501dc57d450e1a19ed7e9e5d4 (diff) |
com_best() if 0
-rw-r--r-- | FICS/ratings.c | 39 |
1 files changed, 39 insertions, 0 deletions
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) { |