Convert some stray spaces to tabs.
This commit is contained in:
committed by
Paul Chote
parent
502c3e2bf5
commit
c8c7629bce
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
{
|
||||
if (onOther != null)
|
||||
onOther();
|
||||
};
|
||||
};
|
||||
|
||||
if (!string.IsNullOrEmpty(otherText) && otherButton != null)
|
||||
otherButton.GetText = () => otherText;
|
||||
|
||||
Reference in New Issue
Block a user