tile.lua: simplify detection if we want to announce a talk

This commit is contained in:
Franzi 2023-09-30 10:20:26 +02:00
parent bb22771740
commit d3660931fb

View file

@ -96,9 +96,9 @@ local function check_next_talks()
for idx = 1, #schedule do for idx = 1, #schedule do
local talk = schedule[idx] local talk = schedule[idx]
-- Ignore all talks that started long before now or have already -- Ignore all talks that have already ended here. We don't want
-- ended here. We don't want to announce these. -- to announce these.
if (talk.start_ts > min_start and talk.end_ts > time) or talk.end_ts > time then if talk.end_ts > time then
-- is this in *this* room, or somewhere else? -- is this in *this* room, or somewhere else?
if current_room and talk.room == current_room then if current_room and talk.room == current_room then
room_next_talks[#room_next_talks+1] = talk room_next_talks[#room_next_talks+1] = talk