skip 'make' animation for mapunits

This commit is contained in:
Chris Forbes
2009-11-01 19:09:18 +13:00
parent f9fb04372c
commit 4336c2af35
3 changed files with 16 additions and 8 deletions

View File

@@ -18,13 +18,16 @@ namespace OpenRa.Game.Traits
public RenderBuilding(Actor self)
: base(self)
{
anim.PlayThen("make", () => anim.PlayRepeating("idle"));
if (self.IsMapActor)
anim.PlayRepeating("idle");
else
anim.PlayThen("make", () => anim.PlayRepeating("idle"));
DoBib(self, false);
}
void DoBib(Actor self, bool isRemove)
{
// at this point, we already know where we are, so we can safely place the bib in the smudge
var buildingInfo = (UnitInfo.BuildingInfo)self.unitInfo;
if (buildingInfo.Bib)
{