Skip to content

Commit

Permalink
Fix: Avoid runechat scheduling too far events into short queue (tgsta…
Browse files Browse the repository at this point in the history
…tion#64322)

Ports fix from SStimer tgstation#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
  • Loading branch information
Bizzonium authored Jan 23, 2022
1 parent f7094e8 commit 137eb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/runechat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 137eb9f

Please sign in to comment.