diff --git a/OpenRA.Game/Renderer.cs b/OpenRA.Game/Renderer.cs index 33547da0ad..2fd1932ba6 100644 --- a/OpenRA.Game/Renderer.cs +++ b/OpenRA.Game/Renderer.cs @@ -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) { diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs index ac6de27e6c..5bf72adc97 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectAllUnitsHotkeyLogic.cs @@ -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); diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs index 190209827b..40d82dcd3d 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/SelectUnitsByTypeHotkeyLogic.cs @@ -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);