Make lobby option tooltips work the same as factions.

This commit is contained in:
Paul Chote
2023-10-29 21:15:59 +00:00
committed by Gustas
parent b28a3b6a5a
commit 96dc085b35
4 changed files with 24 additions and 6 deletions

View File

@@ -583,7 +583,7 @@ namespace OpenRA.Traits
{
Id = id;
Name = map.GetLocalisedString(name);
Description = description != null ? map.GetLocalisedString(description) : null;
Description = description != null ? map.GetLocalisedString(description).Replace(@"\n", "\n") : null;
IsVisible = visible;
DisplayOrder = displayorder;
Values = values.ToDictionary(v => v.Key, v => map.GetLocalisedString(v.Value));