ATIS.lua update time calculation over midnight (logic error)

Actually line 1322 + time here, sind it's negative ... :)
This commit is contained in:
Applevangelist
2021-01-21 15:34:50 +01:00
committed by GitHub
parent 3ed8ca63a8
commit a6ff84c09a

View File

@@ -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)