diff --git a/OpenRA.Game/Map/ActorInitializer.cs b/OpenRA.Game/Map/ActorInitializer.cs index 7f9eff6a33..2d700ec03a 100644 --- a/OpenRA.Game/Map/ActorInitializer.cs +++ b/OpenRA.Game/Map/ActorInitializer.cs @@ -66,7 +66,7 @@ namespace OpenRA { var init = GetOrDefault(info); if (init == null) - throw new InvalidOperationException($"TypeDictionary does not contain instance of type `{typeof(T)}`"); + throw new InvalidOperationException($"TypeDictionary does not contain instance of type `{typeof(T)}`"); return init; } diff --git a/OpenRA.Game/Support/Log.cs b/OpenRA.Game/Support/Log.cs index 2031163b61..a6fd441fc5 100644 --- a/OpenRA.Game/Support/Log.cs +++ b/OpenRA.Game/Support/Log.cs @@ -178,7 +178,7 @@ namespace OpenRA public static void Write(string channelName, string format, params object[] args) { - ChannelWriter.TryWrite(new ChannelData(channelName, format.F(args))); + ChannelWriter.TryWrite(new ChannelData(channelName, format.F(args))); } public static void Dispose() diff --git a/OpenRA.Mods.Cnc/Traits/Infiltration/Infiltrates.cs b/OpenRA.Mods.Cnc/Traits/Infiltration/Infiltrates.cs index 330bb80d1b..3c6f6578f6 100644 --- a/OpenRA.Mods.Cnc/Traits/Infiltration/Infiltrates.cs +++ b/OpenRA.Mods.Cnc/Traits/Infiltration/Infiltrates.cs @@ -105,10 +105,10 @@ namespace OpenRA.Mods.Cnc.Traits { case TargetType.Actor: return Info.Types.Overlaps(target.Actor.GetEnabledTargetTypes()) && - Info.ValidRelationships.HasRelationship(self.Owner.RelationshipWith(target.Actor.Owner)); + Info.ValidRelationships.HasRelationship(self.Owner.RelationshipWith(target.Actor.Owner)); case TargetType.FrozenActor: return target.FrozenActor.IsValid && Info.Types.Overlaps(target.FrozenActor.TargetTypes) && - Info.ValidRelationships.HasRelationship(self.Owner.RelationshipWith(target.FrozenActor.Owner)); + Info.ValidRelationships.HasRelationship(self.Owner.RelationshipWith(target.FrozenActor.Owner)); default: return false; } diff --git a/OpenRA.Mods.Common/Orders/PlaceBuildingOrderGenerator.cs b/OpenRA.Mods.Common/Orders/PlaceBuildingOrderGenerator.cs index d7cb6ae385..e44904980d 100644 --- a/OpenRA.Mods.Common/Orders/PlaceBuildingOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/PlaceBuildingOrderGenerator.cs @@ -136,9 +136,10 @@ namespace OpenRA.Mods.Common.Orders var ret = InnerOrder(world, cell, mi).ToArray(); // If there was a successful placement order - if (ret.Any(o => o.OrderString == "PlaceBuilding" - || o.OrderString == "LineBuild" - || o.OrderString == "PlacePlug")) + if (ret.Any(o => + o.OrderString == "PlaceBuilding" + || o.OrderString == "LineBuild" + || o.OrderString == "PlacePlug")) world.CancelInputMode(); return ret; diff --git a/OpenRA.Mods.Common/Orders/UnitOrderGenerator.cs b/OpenRA.Mods.Common/Orders/UnitOrderGenerator.cs index c1958a86f2..50c1439f29 100644 --- a/OpenRA.Mods.Common/Orders/UnitOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/UnitOrderGenerator.cs @@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Orders return cursorOrder.Cursor; useSelect = target.Type == TargetType.Actor && target.Actor.Info.HasTraitInfo() && - (mi.Modifiers.HasModifier(Modifiers.Shift) || !world.Selection.Actors.Any()); + (mi.Modifiers.HasModifier(Modifiers.Shift) || !world.Selection.Actors.Any()); } return useSelect ? worldSelectCursor : worldDefaultCursor; diff --git a/OpenRA.Mods.Common/UpdateRules/Rules/20200503/RenameStances.cs b/OpenRA.Mods.Common/UpdateRules/Rules/20200503/RenameStances.cs index 37ce8bf219..be6675137d 100644 --- a/OpenRA.Mods.Common/UpdateRules/Rules/20200503/RenameStances.cs +++ b/OpenRA.Mods.Common/UpdateRules/Rules/20200503/RenameStances.cs @@ -14,7 +14,7 @@ using System.Collections.Generic; namespace OpenRA.Mods.Common.UpdateRules.Rules { public class RenameStances : UpdateRule - { + { public override string Name => "Renamed player 'Stances' to 'Relationships'."; public override string Description => diff --git a/OpenRA.Mods.Common/Widgets/Logic/SystemInfoPromptLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/SystemInfoPromptLogic.cs index 8c002c8877..09c39d5599 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/SystemInfoPromptLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/SystemInfoPromptLogic.cs @@ -52,9 +52,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic return ""; return $"&sysinfoversion={SystemInformationVersion}&" - + GetSystemInformation() - .Select(kv => kv.Key + "=" + Uri.EscapeDataString(kv.Value.Value)) - .JoinWith("&"); + + GetSystemInformation() + .Select(kv => kv.Key + "=" + Uri.EscapeDataString(kv.Value.Value)) + .JoinWith("&"); } [ObjectCreator.UseCtor]