Skip to content

Commit

Permalink
- fixed: ST_FormatMapName did not clear the string it wrote to before…
Browse files Browse the repository at this point in the history
… appending text.
  • Loading branch information
coelckers committed Dec 5, 2018
1 parent 5e1fc45 commit a846ed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/g_statusbar/shared_sbar.cpp
Expand Up @@ -144,6 +144,7 @@ void ST_FormatMapName(FString &mapname, const char *mapnamecolor)
cluster_info_t *cluster = FindClusterInfo (level.cluster);
bool ishub = (cluster != NULL && (cluster->flags & CLUSTER_HUB));

mapname = "";
if (am_showmaplabel == 1 || (am_showmaplabel == 2 && !ishub))
{
mapname << level.MapName << ": ";
Expand Down

0 comments on commit a846ed3

Please sign in to comment.