This commit is contained in:
Frank 2022-07-01 23:00:25 +02:00
parent 8dd850d685
commit 0dc26216c2
3 changed files with 10 additions and 4 deletions

View File

@ -2454,9 +2454,13 @@ end
--- Set that mission assets are teleported to the mission execution waypoint.
-- @param #AUFTRAG self
-- @param #boolean Switch If `true` or `nil`, teleporting is on. If `false`, teleporting is off.
-- @return #AUFTRAG self
function AUFTRAG:SetTeleport()
self.teleport=true
function AUFTRAG:SetTeleport(Switch)
if Switch==nil then
Switch=true
end
self.teleport=Switch
return self
end

View File

@ -1013,7 +1013,7 @@ function OPERATION:onafterPhaseChange(From, Event, To, Phase)
end
-- Debug message.
self:T(self.lid..string.format("Phase change: %s --> %s", oldphase, Phase.name))
self:I(self.lid..string.format("Phase change: %s --> %s", oldphase, Phase.name))
-- Set currently active phase.
self.phase=Phase

View File

@ -637,7 +637,9 @@ function AIRBASE:Register(AirbaseName)
self:_InitRunways()
-- Set the active runways based on wind direction.
self:SetActiveRunway()
if self.isAirdrome then
self:SetActiveRunway()
end
-- Init parking spots.
self:_InitParkingSpots()