Unreserve helipads on heli death.

This commit is contained in:
Paul Chote
2011-02-26 12:57:25 +13:00
parent 2ffc66416b
commit f74d2318d8
3 changed files with 20 additions and 19 deletions

View File

@@ -27,7 +27,6 @@ namespace OpenRA.Mods.RA.Air
public class Plane : Aircraft, IIssueOrder, IResolveOrder, IOrderVoice, ITick, INotifyDamage, ISync
{
public IDisposable reservation;
[Sync]
public int2 RTBPathHash;
@@ -78,21 +77,6 @@ namespace OpenRA.Mods.RA.Air
return (order.OrderString == "Move" || order.OrderString == "Enter") ? "Move" : null;
}
public void UnReserve()
{
if (reservation != null)
{
reservation.Dispose();
reservation = null;
}
}
public void Damaged(Actor self, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
UnReserve();
}
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == "Move")