From 65856f3b0e64c4fe9485d7f1fa4f3efef3a95fab Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 8 Jun 2019 15:18:13 +0100 Subject: [PATCH] Fix remaining semicolon spacing issues. --- OpenRA.Game/Support/Log.cs | 2 +- OpenRA.Game/Support/VariableExpression.cs | 2 +- .../UtilityCommands/ImportRedAlertLegacyMapCommand.cs | 2 +- OpenRA.Mods.Cnc/UtilityCommands/LegacyTilesetImporter.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/Support/Log.cs b/OpenRA.Game/Support/Log.cs index 41c07abbe0..964ceee4f2 100644 --- a/OpenRA.Game/Support/Log.cs +++ b/OpenRA.Game/Support/Log.cs @@ -30,7 +30,7 @@ namespace OpenRA var path = Platform.SupportDir + "Logs"; Directory.CreateDirectory(path); - for (var i = 0;; i++) + for (var i = 0; ; i++) yield return Path.Combine(path, i > 0 ? "{0}.{1}".F(baseFilename, i) : baseFilename); } diff --git a/OpenRA.Game/Support/VariableExpression.cs b/OpenRA.Game/Support/VariableExpression.cs index 13f630cf86..9830f7ecfb 100644 --- a/OpenRA.Game/Support/VariableExpression.cs +++ b/OpenRA.Game/Support/VariableExpression.cs @@ -590,7 +590,7 @@ namespace OpenRA.Support var tokens = new List(); var currentOpeners = new Stack(); Token lastToken = null; - for (var i = 0;;) + for (var i = 0; ;) { var token = Token.GetNext(Expression, ref i, lastToken != null ? lastToken.Type : TokenType.Invalid); if (token == null) diff --git a/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs b/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs index 3322d9415e..6a3116c472 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs @@ -190,7 +190,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands public static MemoryStream ReadPackedSection(IniSection mapPackSection) { var sb = new StringBuilder(); - for (var i = 1;; i++) + for (var i = 1; ; i++) { var line = mapPackSection.GetValue(i.ToString(), null); if (line == null) diff --git a/OpenRA.Mods.Cnc/UtilityCommands/LegacyTilesetImporter.cs b/OpenRA.Mods.Cnc/UtilityCommands/LegacyTilesetImporter.cs index 8be627fa3c..f79de52a80 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/LegacyTilesetImporter.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/LegacyTilesetImporter.cs @@ -76,7 +76,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands var usedCategories = new HashSet(); try { - for (var tilesetGroupIndex = 0;; tilesetGroupIndex++) + for (var tilesetGroupIndex = 0; ; tilesetGroupIndex++) { var section = file.GetSection("TileSet{0:D4}".F(tilesetGroupIndex));