Got something working with these coordinates

This commit is contained in:
FlightControl
2017-05-20 16:32:56 +02:00
parent 96fdf72400
commit ece08e5e37
5 changed files with 41 additions and 22 deletions

View File

@@ -797,10 +797,12 @@ do -- COORDINATE
-- @param Core.Settings#SETTINGS Settings
-- @return #string The coordinate Text in the configured coordinate system.
function COORDINATE:ToString( Controllable, Settings ) -- R2.2
self:E( { Controllable = Controllable } )
local Settings = Settings or _SETTINGS
local IsAir = Controllable and Controllable:IsAir() or false
local IsAir = Controllable and Controllable:IsAirPlane() or false
if IsAir then
local Coordinate = Controllable:GetCoordinate()