mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
ATIS.lua update time calculation over midnight (logic error)
Actually line 1322 + time here, sind it's negative ... :)
This commit is contained in:
parent
3ed8ca63a8
commit
a6ff84c09a
@ -1319,7 +1319,7 @@ function ATIS:onafterBroadcast(From, Event, To)
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
local clock=UTILS.SecondsToClock(time)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user