From 250dd36289341154a596c91a0ae5a4fe14841798 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 11 Dec 2019 01:19:32 +0100 Subject: [PATCH] - this better uses currentLevel for consistency --- source/duke3d/src/screens.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/screens.cpp b/source/duke3d/src/screens.cpp index 7fa039dbb..71941ad22 100644 --- a/source/duke3d/src/screens.cpp +++ b/source/duke3d/src/screens.cpp @@ -959,10 +959,9 @@ void G_DisplayRest(int32_t smoothratio) if (textret == 0 && ud.overhead_on == 2) { const int32_t a = (ud.screen_size > 0) ? 147 : 179; - char const * levelname = mapList[ud.volume_number*MAXLEVELS + ud.level_number].DisplayName(); - if (G_HaveUserMap()) - levelname = boardfilename; - else if (!(G_GetLogoFlags() & LOGO_HIDEEPISODE)) + char const * levelname = currentLevel->DisplayName(); + + if (!Menu_HaveUserMap() && !(G_GetLogoFlags() & LOGO_HIDEEPISODE)) minitext(5, a+6, GStrings.localize(gVolumeNames[ud.volume_number]), 0, 2+8+16+256); minitext(5, a+6+6, levelname, 0, 2+8+16+256); }