diff --git a/OpenRA.Game/FileFormats/PngLoader.cs b/OpenRA.Game/FileFormats/PngLoader.cs index 558c4e333a..4caf940838 100644 --- a/OpenRA.Game/FileFormats/PngLoader.cs +++ b/OpenRA.Game/FileFormats/PngLoader.cs @@ -149,7 +149,7 @@ namespace OpenRA.FileFormats { var cp = temp.Palette; for (var i = 0; i < 256; i++) - cp.Entries[i] = palette[i]; // finalize the palette. + cp.Entries[i] = palette[i]; // finalize the palette. bitmap.Palette = cp; return bitmap; } diff --git a/OpenRA.Mods.Common/Lint/CheckConditions.cs b/OpenRA.Mods.Common/Lint/CheckConditions.cs index e967f0a934..2a2d948fa9 100644 --- a/OpenRA.Mods.Common/Lint/CheckConditions.cs +++ b/OpenRA.Mods.Common/Lint/CheckConditions.cs @@ -40,12 +40,12 @@ namespace OpenRA.Mods.Common.Lint .SelectMany(p => LintExts.GetPropertyValues(trait, p, emitError)); var fieldGranted = trait.GetType().GetFields() - .Where(x => x.HasAttribute()) - .SelectMany(f => LintExts.GetFieldValues(trait, f, emitError)); + .Where(x => x.HasAttribute()) + .SelectMany(f => LintExts.GetFieldValues(trait, f, emitError)); var propertyGranted = trait.GetType().GetProperties() - .Where(x => x.HasAttribute()) - .SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError)); + .Where(x => x.HasAttribute()) + .SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError)); foreach (var c in fieldConsumed.Concat(propertyConsumed)) if (!string.IsNullOrEmpty(c)) diff --git a/OpenRA.Mods.Common/Traits/Crates/HideMapCrateAction.cs b/OpenRA.Mods.Common/Traits/Crates/HideMapCrateAction.cs index 1fa4223e98..acf13204f2 100644 --- a/OpenRA.Mods.Common/Traits/Crates/HideMapCrateAction.cs +++ b/OpenRA.Mods.Common/Traits/Crates/HideMapCrateAction.cs @@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Traits foreach (var player in collector.World.Players) if (player.IsAlliedWith(collector.Owner)) player.Shroud.ResetExploration(); - } + } else collector.Owner.Shroud.ResetExploration(); diff --git a/OpenRA.Mods.Common/Traits/World/DomainIndex.cs b/OpenRA.Mods.Common/Traits/World/DomainIndex.cs index 301b4be5c6..797e245a1e 100644 --- a/OpenRA.Mods.Common/Traits/World/DomainIndex.cs +++ b/OpenRA.Mods.Common/Traits/World/DomainIndex.cs @@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.Traits foreach (var cell in dirtyCells) { // Select all neighbors inside the map boundaries - var thisCell = cell; // benign closure hazard + var thisCell = cell; // benign closure hazard var neighbors = CVec.Directions.Select(d => d + thisCell) .Where(c => map.Contains(c)); diff --git a/OpenRA.Mods.Common/Widgets/ConfirmationDialogs.cs b/OpenRA.Mods.Common/Widgets/ConfirmationDialogs.cs index b4af646e06..ba8f88f1bd 100644 --- a/OpenRA.Mods.Common/Widgets/ConfirmationDialogs.cs +++ b/OpenRA.Mods.Common/Widgets/ConfirmationDialogs.cs @@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Widgets { if (onOther != null) onOther(); - }; + }; if (!string.IsNullOrEmpty(otherText) && otherButton != null) otherButton.GetText = () => otherText;