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. --- Set that mission assets are teleported to the mission execution waypoint.
-- @param #AUFTRAG self -- @param #AUFTRAG self
-- @param #boolean Switch If `true` or `nil`, teleporting is on. If `false`, teleporting is off.
-- @return #AUFTRAG self -- @return #AUFTRAG self
function AUFTRAG:SetTeleport() function AUFTRAG:SetTeleport(Switch)
self.teleport=true if Switch==nil then
Switch=true
end
self.teleport=Switch
return self return self
end end

View File

@ -1013,7 +1013,7 @@ function OPERATION:onafterPhaseChange(From, Event, To, Phase)
end end
-- Debug message. -- 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. -- Set currently active phase.
self.phase=Phase self.phase=Phase

View File

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