Merge pull request #1436 from Applevangelist/patch-44

ATIS.lua update time calculation over midnight (logic error)
This commit is contained in:
Frank 2021-01-21 17:11:07 +01:00 committed by GitHub
commit d469374ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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