Convert some stray spaces to tabs.

This commit is contained in:
RoosterDragon
2017-12-15 19:31:00 +00:00
committed by Paul Chote
parent 502c3e2bf5
commit c8c7629bce
5 changed files with 8 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -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<GrantedConditionReferenceAttribute>())
.SelectMany(f => LintExts.GetFieldValues(trait, f, emitError));
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
.SelectMany(f => LintExts.GetFieldValues(trait, f, emitError));
var propertyGranted = trait.GetType().GetProperties()
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
.SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError));
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
.SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError));
foreach (var c in fieldConsumed.Concat(propertyConsumed))
if (!string.IsNullOrEmpty(c))

View File

@@ -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();

View File

@@ -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));

View File

@@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Widgets
{
if (onOther != null)
onOther();
};
};
if (!string.IsNullOrEmpty(otherText) && otherButton != null)
otherButton.GetText = () => otherText;