Remove unnecessarily interpolated strings

This commit is contained in:
Eduardo Cáceres
2022-05-02 13:08:29 +02:00
committed by atlimit8
parent 7eb64ea6fc
commit aed2b8afae
3 changed files with 5 additions and 5 deletions

View File

@@ -231,7 +231,7 @@ namespace OpenRA
BeginFrame();
if (worldSheet == null)
throw new InvalidOperationException($"BeginWorld called before SetMaximumViewportSize has been set.");
throw new InvalidOperationException("BeginWorld called before SetMaximumViewportSize has been set.");
if (worldSprite == null || worldViewport.Size != lastWorldViewportSize)
{

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
if (newSelection.Count > 1)
TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across screen.");
else
TextNotificationsManager.AddFeedbackLine($"Selected one unit across screen.");
TextNotificationsManager.AddFeedbackLine("Selected one unit across screen.");
}
else
{
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
if (newSelection.Count > 1)
TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across map.");
else
TextNotificationsManager.AddFeedbackLine($"Selected one unit across map.");
TextNotificationsManager.AddFeedbackLine("Selected one unit across map.");
}
selection.Combine(world, newSelection, false, false);

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
if (newSelection.Count > 1)
TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across screen.");
else
TextNotificationsManager.AddFeedbackLine($"Selected one unit across screen.");
TextNotificationsManager.AddFeedbackLine("Selected one unit across screen.");
}
else
{
@@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
if (newSelection.Count > 1)
TextNotificationsManager.AddFeedbackLine($"Selected {newSelection.Count} units across map.");
else
TextNotificationsManager.AddFeedbackLine($"Selected one unit across map.");
TextNotificationsManager.AddFeedbackLine("Selected one unit across map.");
}
selection.Combine(world, newSelection, true, false);