From 58efbc8e035b19c44fb11a23a000e30b86a36f8a Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 16 Feb 2022 20:35:32 +0100 Subject: [PATCH] stats: fix items order --- src/game/stats.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/game/stats.c b/src/game/stats.c index 651eb6ddc..1423acf46 100644 --- a/src/game/stats.c +++ b/src/game/stats.c @@ -308,6 +308,16 @@ void Stats_Show(int32_t level_num) Text_CentreV(txt, 1); y += row_height; + // deaths + if (g_Config.enable_deaths_counter && g_GameInfo.death_counter_supported) { + sprintf( + buf, g_GameFlow.strings[GS_STATS_DEATHS_FMT], stats->death_count); + txt = Text_Create(0, y, buf); + Text_CentreH(txt, 1); + Text_CentreV(txt, 1); + y += row_height; + } + // time taken int seconds = stats->timer / 30; int hours = seconds / 3600; @@ -326,16 +336,6 @@ void Stats_Show(int32_t level_num) Text_CentreV(txt, 1); y += row_height; - // deaths - if (g_Config.enable_deaths_counter && g_GameInfo.death_counter_supported) { - sprintf( - buf, g_GameFlow.strings[GS_STATS_DEATHS_FMT], stats->death_count); - txt = Text_Create(0, y, buf); - Text_CentreH(txt, 1); - Text_CentreV(txt, 1); - y += row_height; - } - Output_FadeToSemiBlack(true); // wait till a skip key is pressed do {