Warehouse v0.6.2

added first version of save/load assets

PseudoATC
fixed bearing info
other bugs reported!
This commit is contained in:
Frank
2018-10-15 23:50:40 +02:00
parent 40154788d6
commit d87cb41b75
2 changed files with 187 additions and 85 deletions

View File

@@ -98,7 +98,7 @@ PSEUDOATC.id="PseudoATC | "
--- PSEUDOATC version.
-- @field #number version
PSEUDOATC.version="0.9.0"
PSEUDOATC.version="0.9.1"
-----------------------------------------------------------------------------------------------------------------------------------------
@@ -743,9 +743,9 @@ function PSEUDOATC:ReportBR(id, position, location)
local coord=unit:GetCoordinate()
-- Direction vector from current position (coord) to target (position).
local pos=coord:Translate(30,90)
local vec3=coord:GetDirectionVec3(pos)
local angle=coord:GetAngleDegrees(vec3)
local angle=coord:HeadingTo(position)
-- Range from current to
local range=coord:Get2DDistance(position)
-- Bearing string.