Merge pull request #11982 from obrakmann/fix11979-helicopter-reservations
Fix helicopter reservations
This commit is contained in:
@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public CPos TopLeft { get { return self.World.Map.CellContaining(CenterPosition); } }
|
||||
public int TurnSpeed { get { return Info.TurnSpeed; } }
|
||||
public Actor ReservedActor { get; private set; }
|
||||
public bool MayYieldReservation;
|
||||
public bool MayYieldReservation { get; private set; }
|
||||
|
||||
bool airborne;
|
||||
bool cruising;
|
||||
@@ -282,6 +282,14 @@ namespace OpenRA.Mods.Common.Traits
|
||||
}
|
||||
}
|
||||
|
||||
public void AllowYieldingReservation()
|
||||
{
|
||||
if (reservation == null)
|
||||
return;
|
||||
|
||||
MayYieldReservation = true;
|
||||
}
|
||||
|
||||
public void UnReserve()
|
||||
{
|
||||
if (reservation == null)
|
||||
|
||||
Reference in New Issue
Block a user