From 8d9f684708264676e2426c5cc937b7c92d56eaf7 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 31 Oct 2022 23:14:26 +0000 Subject: [PATCH] Fix "NO CONTEST" support for exitlevel-replay hut interaction --- src/m_menu.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index de927783..4bdc6ee0 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5603,6 +5603,18 @@ static void DrawReplayHutReplayInfo(void) if (demolist[dir_on[menudepthleft]].gametype == GT_RACE) { V_DrawThinString(x, y+39, V_SNAPTOTOP|highlightflags, "TIME"); + } + else + { + V_DrawThinString(x, y+39, V_SNAPTOTOP|highlightflags, "SCORE"); + } + + if (demolist[dir_on[menudepthleft]].standings[0].timeorscore == (UINT32_MAX-1)) + { + V_DrawThinString(x+32, y+40-1, V_SNAPTOTOP, "NO CONTEST"); + } + else if (demolist[dir_on[menudepthleft]].gametype == GT_RACE) + { V_DrawRightAlignedString(x+84, y+40, V_SNAPTOTOP, va("%d'%02d\"%02d", G_TicsToMinutes(demolist[dir_on[menudepthleft]].standings[0].timeorscore, true), G_TicsToSeconds(demolist[dir_on[menudepthleft]].standings[0].timeorscore), @@ -5611,7 +5623,6 @@ static void DrawReplayHutReplayInfo(void) } else { - V_DrawThinString(x, y+39, V_SNAPTOTOP|highlightflags, "SCORE"); V_DrawString(x+32, y+40, V_SNAPTOTOP, va("%d", demolist[dir_on[menudepthleft]].standings[0].timeorscore)); }