mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[MIRROR] Fix: Avoid runechat scheduling too far events into short queue [MDB IGNORE] (#10942)
* Fix: Avoid runechat scheduling too far events into short queue (#64322) Ports fix from SStimer #64242 Why It's Good For The Game Changelog cl Semoro fix: Avoid runechat scheduling too far events into short queue (port from SStimer) /cl * Fix: Avoid runechat scheduling too far events into short queue Co-authored-by: Aziz Chynaliev <azizonkg@gmail.com>
This commit is contained in:
co-authored by
Aziz Chynaliev
parent
a03873e253
commit
400bef239a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user