mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-11 19:57:28 +00:00
Work by Fullgas on multiple issues and new features
* Indicate obligation to use MIST delivered with CTLD * update ctld.dynamicCargoUnits table * Indicate obligation to use MIST delivered with CTLD * MIST madatory in red * MIST mandatory in red * fix mist.utils.getHeadingPoints calls * commit * fix #164 Issue-wrong12oclock msg * commit ctld.tools.getRelativeBearing() * commit
This commit is contained in:
@@ -35,7 +35,7 @@ mist = {}
|
||||
-- don't change these
|
||||
mist.majorVersion = 4
|
||||
mist.minorVersion = 5
|
||||
mist.build = "128-DYNSLOTS-01"
|
||||
mist.build = "128-DYNSLOTS-02"
|
||||
|
||||
-- forward declaration of log shorthand
|
||||
local log
|
||||
@@ -826,11 +826,11 @@ do -- the main scope
|
||||
if zone.verticies then
|
||||
local offset = {}
|
||||
for i = 1, #zone.verticies do
|
||||
table.insert(offset, {dist = mist.utils.get2DDist(uRef.point, zone.verticies[i]), heading = mist.getHeadingPoints(uRef.point, zone.verticies[i]) + uRef.heading})
|
||||
table.insert(offset, {dist = mist.utils.get2DDist(uRef.point, zone.verticies[i]), heading = mist.utils.getHeadingPoints(uRef.point, zone.verticies[i]) + uRef.heading})
|
||||
end
|
||||
zone.offset = offset
|
||||
else
|
||||
zone.offset = {dist = mist.utils.get2DDist(uRef.point, zone.point), heading = mist.getHeadingPoints(uRef.point, zone.point) + uRef.heading}
|
||||
zone.offset = {dist = mist.utils.get2DDist(uRef.point, zone.point), heading = mist.utils.getHeadingPoints(uRef.point, zone.point) + uRef.heading}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user