Fix resupply anim continuing if docked actor dies during resupply

This commit is contained in:
reaperrr
2019-07-16 23:08:40 +02:00
committed by Paul Chote
parent 8fa7bb16f8
commit 83a607e089

View File

@@ -63,6 +63,12 @@ namespace OpenRA.Mods.Common.Traits.Render
wsb.CancelCustomAnimation(self);
animPlaying = false;
}
// If an actor died before finishing resupply, there will never be a ResupplyTick call
// with ResupplyType.None (as activities tick before ITick), so reset here every tick
// to prevent the animation from continuing after the resupplied actor died.
repairing = false;
rearming = false;
}
void INotifyResupply.BeforeResupply(Actor self, Actor target, ResupplyType types)