Fix StyleCop warnings in OpenRA.Mods.RA

This commit is contained in:
Hellhake
2015-01-01 23:03:55 +01:00
parent e9989496c4
commit b6410bc1e0
134 changed files with 261 additions and 267 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Traits
bool isProne { get { return remainingProneTime > 0; } }
public bool IsModifyingSequence { get { return isProne; } }
public string SequencePrefix { get { return info.ProneSequencePrefix ; } }
public string SequencePrefix { get { return info.ProneSequencePrefix; } }
public TakeCover(ActorInitializer init, TakeCoverInfo info)
: base(init, info)
@@ -46,7 +46,8 @@ namespace OpenRA.Mods.RA.Traits
public void Damaged(Actor self, AttackInfo e)
{
if (e.Damage > 0 && (e.Warhead == null || !e.Warhead.PreventProne)) /* Don't go prone when healed */
/* Don't go prone when healed */
if (e.Damage > 0 && (e.Warhead == null || !e.Warhead.PreventProne))
{
if (!isProne)
localOffset = info.ProneOffset;