diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-06-10 13:52:34 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-06-10 13:52:34 +0000 |
commit | eb45a34b4a0881b227cb1a461ca1fcb77e593865 (patch) | |
tree | b0feae3bdb7a35e22baa9a447b9e86e11de6a44d | |
parent | d6de0956f7e596a1aafc644f6b2763cc4dcc2aa9 (diff) |
Changed score displays.
-rw-r--r-- | csol.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |