- fixed level name display on automap.

This commit is contained in:
Christoph Oelckers 2021-05-19 22:21:11 +02:00
parent 5ee4bc5cca
commit 91bd24f8b5
2 changed files with 4 additions and 4 deletions

View file

@ -101,13 +101,13 @@ struct MapRecord native
String GetLabelName()
{
if (flags & USERMAP) return "$TXT_USERMAP";
if (flags & USERMAP) return StringTable.Localize("$TXT_USERMAP");
return labelName;
}
String DisplayName()
{
if (name == "") return labelName;
return name;
return StringTable.Localize(name);
}
native ClusterDef GetCluster();

View file

@ -114,9 +114,9 @@ class RazeStatusBar : StatusBarCore
let lev = currentLevel;
String mapname;
if (am_showlabel)
mapname.Format("%s%s: %s%s", info.letterColor, lev.GetLabelName(), info.standardColor, lev.DisplayName());
mapname = String.Format("%s%s: %s%s", info.letterColor, lev.GetLabelName(), info.standardColor, lev.DisplayName());
else
mapname.Format("%s%s", info.standardColor, lev.DisplayName());
mapname = String.Format("%s%s", info.standardColor, lev.DisplayName());
forcetextfont |= am_textfont;
double y;