Fix misc indentation errors.

This commit is contained in:
Paul Chote
2018-10-06 20:25:08 +01:00
committed by abcdefg30
parent 416f529cb0
commit eb0e2eeb9d
8 changed files with 30 additions and 31 deletions

View File

@@ -39,9 +39,9 @@ namespace OpenRA.Mods.Common.Graphics
public TextRenderable(SpriteFont font, WPos pos, int zOffset, Color color, string text)
: this(font, pos, zOffset, color,
ChromeMetrics.Get<Color>("TextContrastColorDark"),
ChromeMetrics.Get<Color>("TextContrastColorLight"),
text) { }
ChromeMetrics.Get<Color>("TextContrastColorDark"),
ChromeMetrics.Get<Color>("TextContrastColorLight"),
text) { }
public WPos Pos { get { return pos; } }
public PaletteReference Palette { get { return null; } }

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Scripting
}
[Desc("Call a function for each passenger when it enters a transport. " +
"The callback function will be called as func(Actor transport, Actor passenger).")]
"The callback function will be called as func(Actor transport, Actor passenger).")]
public void OnPassengerEntered(Actor a, LuaFunction func)
{
GetScriptTriggers(a).RegisterCallback(Trigger.OnPassengerEntered, func, Context);

View File

@@ -112,11 +112,11 @@ namespace OpenRA.Mods.Common.Traits
if (State == CarryallState.Carrying)
{
if (!Carryable.IsDead)
{
var positionable = Carryable.Trait<IPositionable>();
positionable.SetPosition(Carryable, self.Location);
Carryable.Kill(e.Attacker);
}
{
var positionable = Carryable.Trait<IPositionable>();
positionable.SetPosition(Carryable, self.Location);
Carryable.Kill(e.Attacker);
}
Carryable = null;
}

View File

@@ -100,6 +100,6 @@ namespace OpenRA.Mods.Common.Traits
rgbaRenderer.DrawLine(wr.Screen3DPosition(spawnPos), wr.Screen3DPosition(exitCellCenter), 1f, self.Owner.Color.RGB);
}
}
}
}
}
}

View File

@@ -67,15 +67,15 @@ namespace OpenRA.Mods.Common.UtilityCommands
var allMatch = true;
for (var i = 0; i < lenImpl; i++)
{
var implementingParam = implementingMethodParams[i];
var interfaceParam = interfaceMethodParams[i];
if (implementingParam.ParameterType != interfaceParam.ParameterType
var implementingParam = implementingMethodParams[i];
var interfaceParam = interfaceMethodParams[i];
if (implementingParam.ParameterType != interfaceParam.ParameterType
|| implementingParam.Name != interfaceParam.Name
|| implementingParam.IsOut != interfaceParam.IsOut)
{
{
allMatch = false;
break;
}
}
}
// Explicitly implemented methods are never public in C#.