Hide the docking animation when it is not active.

This commit is contained in:
Paul Chote
2015-10-19 17:43:27 +01:00
parent ec56d2ec88
commit a9424d0fa7

View File

@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Traits
anim = new AnimationWithOffset(overlay,
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
() => !buildComplete);
() => !buildComplete || !docked);
rs.Add(anim, info.Palette, info.IsPlayerPalette);
}