mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #1436 from Applevangelist/patch-44
ATIS.lua update time calculation over midnight (logic error)
This commit is contained in:
commit
d469374ed5
@ -1319,7 +1319,7 @@ function ATIS:onafterBroadcast(From, Event, To)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if time < 0 then
|
if time < 0 then
|
||||||
time = 24*60*60 - time --avoid negative time around midnight
|
time = 24*60*60 + time --avoid negative time around midnight
|
||||||
end
|
end
|
||||||
|
|
||||||
local clock=UTILS.SecondsToClock(time)
|
local clock=UTILS.SecondsToClock(time)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user