From 7f73b8d8b4f29e2ff390619297a72a07936e3365 Mon Sep 17 00:00:00 2001 From: Aziz Chynaliev Date: Sat, 22 Jan 2022 21:06:20 +0300 Subject: [PATCH] Fix: Avoid runechat scheduling too far events into short queue (#17361) --- code/controllers/subsystem/runechat.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/runechat.dm b/code/controllers/subsystem/runechat.dm index c5d49576fda..960e56048b1 100644 --- a/code/controllers/subsystem/runechat.dm +++ b/code/controllers/subsystem/runechat.dm @@ -3,7 +3,7 @@ /// Helper for getting the correct bucket for a given chatmessage #define BUCKET_POS(scheduled_destruction) (((round((scheduled_destruction - SSrunechat.head_offset) / world.tick_lag) + 1) % BUCKET_LEN) || BUCKET_LEN) /// Gets the maximum time at which messages will be handled in buckets, used for deferring to secondary queue -#define BUCKET_LIMIT (world.time + TICKS2DS(min(BUCKET_LEN - (SSrunechat.practical_offset - DS2TICKS(world.time - SSrunechat.head_offset)) - 1, BUCKET_LEN - 1))) +#define BUCKET_LIMIT (SSrunechat.head_offset + TICKS2DS(BUCKET_LEN + SSrunechat.practical_offset - 1)) /** * # Runechat Subsystem