Remove some bogus duplication in Sell (caused the double-sell bug).

This commit is contained in:
Paul Chote
2011-04-16 11:26:51 +12:00
parent 7b0a9136ab
commit 8b00e1cfa5
3 changed files with 9 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.RA.Render
}
}
public class RenderBuilding : RenderSimple, INotifyDamage, INotifySold, IRenderModifier
public class RenderBuilding : RenderSimple, INotifyDamage, IRenderModifier
{
readonly RenderBuildingInfo Info;
@@ -112,16 +112,5 @@ namespace OpenRA.Mods.RA.Render
else if (e.DamageState < DamageState.Heavy)
anim.ReplaceAnim("idle");
}
public virtual void Selling( Actor self )
{
if( Info.HasMakeAnimation )
anim.PlayBackwardsThen( "make", null );
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
Sound.PlayToPlayer(self.Owner, s, self.CenterLocation);
}
public void Sold(Actor self) {}
}
}