mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
getQFE minor change
Changed getQFE function to be based on Ground level position of point given. Whoops.
This commit is contained in:
parent
60503b2426
commit
073279a7fd
3
mist.lua
3
mist.lua
@ -35,7 +35,7 @@ mist = {}
|
|||||||
-- don't change these
|
-- don't change these
|
||||||
mist.majorVersion = 4
|
mist.majorVersion = 4
|
||||||
mist.minorVersion = 4
|
mist.minorVersion = 4
|
||||||
mist.build = 78
|
mist.build = 79
|
||||||
|
|
||||||
-- forward declaration of log shorthand
|
-- forward declaration of log shorthand
|
||||||
local log
|
local log
|
||||||
@ -3849,6 +3849,7 @@ do -- mist.util scope
|
|||||||
|
|
||||||
local t, p = 0, 0
|
local t, p = 0, 0
|
||||||
if atmosphere.getTemperatureAndPressure then
|
if atmosphere.getTemperatureAndPressure then
|
||||||
|
t, p = atmosphere.getTemperatureAndPressure(mist.utils.makeVec3GL(point))
|
||||||
end
|
end
|
||||||
if p == 0 then
|
if p == 0 then
|
||||||
local h = land.getHeight(mist.utils.makeVec2(point))/0.3048 -- convert to feet
|
local h = land.getHeight(mist.utils.makeVec2(point))/0.3048 -- convert to feet
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user