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;
|
var cp = temp.Palette;
|
||||||
for (var i = 0; i < 256; i++)
|
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;
|
bitmap.Palette = cp;
|
||||||
return bitmap;
|
return bitmap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,12 +40,12 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
.SelectMany(p => LintExts.GetPropertyValues(trait, p, emitError));
|
.SelectMany(p => LintExts.GetPropertyValues(trait, p, emitError));
|
||||||
|
|
||||||
var fieldGranted = trait.GetType().GetFields()
|
var fieldGranted = trait.GetType().GetFields()
|
||||||
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
|
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
|
||||||
.SelectMany(f => LintExts.GetFieldValues(trait, f, emitError));
|
.SelectMany(f => LintExts.GetFieldValues(trait, f, emitError));
|
||||||
|
|
||||||
var propertyGranted = trait.GetType().GetProperties()
|
var propertyGranted = trait.GetType().GetProperties()
|
||||||
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
|
.Where(x => x.HasAttribute<GrantedConditionReferenceAttribute>())
|
||||||
.SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError));
|
.SelectMany(f => LintExts.GetPropertyValues(trait, f, emitError));
|
||||||
|
|
||||||
foreach (var c in fieldConsumed.Concat(propertyConsumed))
|
foreach (var c in fieldConsumed.Concat(propertyConsumed))
|
||||||
if (!string.IsNullOrEmpty(c))
|
if (!string.IsNullOrEmpty(c))
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
foreach (var player in collector.World.Players)
|
foreach (var player in collector.World.Players)
|
||||||
if (player.IsAlliedWith(collector.Owner))
|
if (player.IsAlliedWith(collector.Owner))
|
||||||
player.Shroud.ResetExploration();
|
player.Shroud.ResetExploration();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
collector.Owner.Shroud.ResetExploration();
|
collector.Owner.Shroud.ResetExploration();
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
foreach (var cell in dirtyCells)
|
foreach (var cell in dirtyCells)
|
||||||
{
|
{
|
||||||
// Select all neighbors inside the map boundaries
|
// 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)
|
var neighbors = CVec.Directions.Select(d => d + thisCell)
|
||||||
.Where(c => map.Contains(c));
|
.Where(c => map.Contains(c));
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
{
|
{
|
||||||
if (onOther != null)
|
if (onOther != null)
|
||||||
onOther();
|
onOther();
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(otherText) && otherButton != null)
|
if (!string.IsNullOrEmpty(otherText) && otherButton != null)
|
||||||
otherButton.GetText = () => otherText;
|
otherButton.GetText = () => otherText;
|
||||||
|
|||||||
Reference in New Issue
Block a user