summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-06-10 13:52:34 +0000
committerIan C <ianc@noddybox.co.uk>2020-06-10 13:52:34 +0000
commiteb45a34b4a0881b227cb1a461ca1fcb77e593865 (patch)
treeb0feae3bdb7a35e22baa9a447b9e86e11de6a44d
parentd6de0956f7e596a1aafc644f6b2763cc4dcc2aa9 (diff)
Changed score displays.
-rw-r--r--csol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/csol.c b/csol.c
index 4afa853..3ff6571 100644
--- a/csol.c
+++ b/csol.c
@@ -102,12 +102,13 @@ static const char *GetScore(int game)
if (score[game].played == 0)
{
- strcpy(buff, "0 played, 0.00% won");
+ strcpy(buff, "0 played, 0 won, 0.00%");
}
else
{
- snprintf(buff, sizeof buff, "%lu played, %.2f%% won",
+ snprintf(buff, sizeof buff, "%lu played, %lu won, %.2f%%",
score[game].played,
+ score[game].won,
(double)score[game].won / (double)score[game].played * 100.0);
}