mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
minor edits
This commit is contained in:
@@ -7606,7 +7606,7 @@ function AIRBOSS:_InitPlayer( playerData, step )
|
|||||||
playerData.landed = false
|
playerData.landed = false
|
||||||
playerData.Tlso = timer.getTime()
|
playerData.Tlso = timer.getTime()
|
||||||
playerData.Tgroove = nil
|
playerData.Tgroove = nil
|
||||||
playerData.TIG0 = nil
|
playerData.TIG0 = 0 --changed to prevent errors in script when player is not in correct spot
|
||||||
playerData.wire = nil
|
playerData.wire = nil
|
||||||
playerData.flag = -100
|
playerData.flag = -100
|
||||||
playerData.debriefschedulerID = nil
|
playerData.debriefschedulerID = nil
|
||||||
@@ -8417,7 +8417,7 @@ end
|
|||||||
function AIRBOSS:_SetTimeInGroove( playerData )
|
function AIRBOSS:_SetTimeInGroove( playerData )
|
||||||
|
|
||||||
-- Set time in the groove
|
-- Set time in the groove
|
||||||
if playerData.TIG0 > 2 then --circuit added to prevent negative groove time
|
if playerData.TIG0 then
|
||||||
playerData.Tgroove = timer.getTime() - playerData.TIG0 - 1.5 -- VNAO Edit - Subtracting an extra 1.5
|
playerData.Tgroove = timer.getTime() - playerData.TIG0 - 1.5 -- VNAO Edit - Subtracting an extra 1.5
|
||||||
else
|
else
|
||||||
playerData.Tgroove = 999
|
playerData.Tgroove = 999
|
||||||
@@ -11958,10 +11958,12 @@ function AIRBOSS:GetHeading( magnetic )
|
|||||||
hdg = hdg - self.magvar
|
hdg = hdg - self.magvar
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Adjust negative values.
|
-- -- Adjust negative values.
|
||||||
if hdg < 0 then
|
-- if hdg < 0 then
|
||||||
hdg = hdg + 360
|
-- hdg = hdg + 360
|
||||||
end
|
-- end
|
||||||
|
|
||||||
|
hdg = hdg % 360 -- using this to replace the above function to prevent negative values and BRC higher than 360
|
||||||
|
|
||||||
return hdg
|
return hdg
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user