From 2dcc85f6082e9fe8e630853323fb8f72cbe278fd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 23 Jun 2010 17:32:39 +1200 Subject: [PATCH] fix aircraft so it actually works again --- OpenRA.Mods.RA/Aircraft.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Aircraft.cs b/OpenRA.Mods.RA/Aircraft.cs index 7bfa2167ef..ccab6a4507 100755 --- a/OpenRA.Mods.RA/Aircraft.cs +++ b/OpenRA.Mods.RA/Aircraft.cs @@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA public virtual object Create( ActorInitializer init ) { return new Aircraft( init ); } } - public class Aircraft : IMove + public class Aircraft : IMove, IOccupySpace { [Sync] public int2 Location; @@ -67,5 +67,8 @@ namespace OpenRA.Mods.RA public UnitMovementType GetMovementType() { return UnitMovementType.Fly; } public bool CanEnterCell(int2 location) { return true; } + + int2[] noCells = new int2[] { }; + public IEnumerable OccupiedCells() { return noCells; } } }