- fixed: ST_FormatMapName did not clear the string it wrote to before appending text.

This commit is contained in:
Christoph Oelckers 2018-12-05 08:29:39 +01:00 committed by drfrag
parent 22b8bdc02d
commit c0c5df0e6e

View file

@ -155,6 +155,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 << ": ";