- this better uses currentLevel for consistency

This commit is contained in:
Christoph Oelckers 2019-12-11 01:19:32 +01:00
parent ec96ae8992
commit 250dd36289

View file

@ -959,10 +959,9 @@ void G_DisplayRest(int32_t smoothratio)
if (textret == 0 && ud.overhead_on == 2) if (textret == 0 && ud.overhead_on == 2)
{ {
const int32_t a = (ud.screen_size > 0) ? 147 : 179; const int32_t a = (ud.screen_size > 0) ? 147 : 179;
char const * levelname = mapList[ud.volume_number*MAXLEVELS + ud.level_number].DisplayName(); char const * levelname = currentLevel->DisplayName();
if (G_HaveUserMap())
levelname = boardfilename; if (!Menu_HaveUserMap() && !(G_GetLogoFlags() & LOGO_HIDEEPISODE))
else if (!(G_GetLogoFlags() & LOGO_HIDEEPISODE))
minitext(5, a+6, GStrings.localize(gVolumeNames[ud.volume_number]), 0, 2+8+16+256); 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); minitext(5, a+6+6, levelname, 0, 2+8+16+256);
} }