WithCrumbleOverlay for Dune 2000 buildings

This commit is contained in:
Matthias Mailänder
2013-08-17 23:24:47 +02:00
parent 32c3563a04
commit 8c6074a081
8 changed files with 334 additions and 63 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.RA.Activities
bool complete = false;
bool started = false;
public override Activity Tick( Actor self )
public override Activity Tick(Actor self)
{
if (self.IsDead())
return NextActivity;
@@ -66,6 +66,6 @@ namespace OpenRA.Mods.RA.Activities
}
// Cannot be cancelled
public override void Cancel( Actor self ) { }
public override void Cancel(Actor self) { }
}
}

View File

@@ -47,7 +47,7 @@ namespace OpenRA.Mods.RA.Render
var self = init.self;
// Work around a bogus crash
anim.PlayRepeating( NormalizeSequence(self, "idle") );
anim.PlayRepeating(NormalizeSequence(self, "idle"));
self.Trait<IBodyOrientation>().SetAutodetectedFacings(anim.CurrentSequence.Facings);
// Can't call Complete() directly from ctor because other traits haven't been inited yet