Unwanted changes

This commit is contained in:
Frank
2023-02-08 16:28:04 +01:00
parent e4c8ca34ed
commit ffc86bf046
3 changed files with 8 additions and 14 deletions

View File

@@ -1812,7 +1812,7 @@ AIRBOSS.version = "1.3.0"
function AIRBOSS:New( carriername, alias )
-- Inherit everthing from FSM class.
self = BASE:Inherit( self, FSM:New() ) -- #AIRBOSS
local self = BASE:Inherit( self, FSM:New() ) -- #AIRBOSS
-- Debug.
self:F2( { carriername = carriername, alias = alias } )
@@ -8318,7 +8318,7 @@ function AIRBOSS:OnEventLand( EventData )
local dist = coord:Get2DDistance( self:GetCoordinate() )
-- Get wire
local wire = self:_GetWirePos( coord, 0 )
local wire = self:_GetWire( coord, 0 )
-- Aircraft type.
local _type = EventData.IniUnit:GetTypeName()
@@ -10154,11 +10154,11 @@ function AIRBOSS:_GetSternCoord()
return self.sterncoord
end
--- Get wire from
--- Get wire from draw argument.
-- @param #AIRBOSS self
-- @param Core.Point#COORDINATE Lcoord Landing position.
-- @return #number Trapped wire (1-4) or 99 if no wire was trapped.
function AIRBOSS:_GetWire()
function AIRBOSS:_GetWireFromDrawArg()
local wireArgs={}
wireArgs[1]=141
@@ -10181,7 +10181,7 @@ end
-- @param Core.Point#COORDINATE Lcoord Landing position.
-- @param #number dc Distance correction. Shift the landing coord back if dc>0 and forward if dc<0.
-- @return #number Trapped wire (1-4) or 99 if no wire was trapped.
function AIRBOSS:_GetWirePos( Lcoord, dc )
function AIRBOSS:_GetWire( Lcoord, dc )
-- Final bearing (true).
local FB = self:GetFinalBearing()
@@ -10299,7 +10299,7 @@ function AIRBOSS:_Trapped( playerData )
end
-- Get wire.
local wire = self:_GetWirePos( coord, dcorr )
local wire = self:_GetWire( coord, dcorr )
-- Debug.
local text = string.format( "Player %s _Trapped: v=%.1f km/h, s-dcorr=%.1f m ==> wire=%d (dcorr=%d)", playerData.name, v, s - dcorr, wire, dcorr )