Merge pull request #3479 from pchote/conyard-fix

Fix zombie MCV bug.
This commit is contained in:
Matthias Mailänder
2013-06-27 14:14:38 -07:00
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ namespace OpenRA.Mods.RA.Activities
public override Activity Tick( Actor self )
{
if (self.IsDead())
return NextActivity;
if (started)
{
// Don't break the actor if someone has overriden the animation prematurely

View File

@@ -34,6 +34,9 @@ namespace OpenRA.Mods.RA.Activities
self.World.AddFrameEndTask(w =>
{
if (self.IsDead())
return;
foreach (var nt in self.TraitsImplementing<INotifyTransform>())
nt.OnTransform(self);