mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Disable screentip images for clients on BYOND 516.1657+ (#90613)
This commit is contained in:
@@ -4,3 +4,9 @@
|
||||
/// Checks to see if a /client has fully gone through New() as a safeguard against certain operations.
|
||||
/// Should return the boolean value of the fully_created var, which should be TRUE if New() has finished running. FALSE otherwise.
|
||||
#define VALIDATE_CLIENT_INITIALIZATION(target) (target.fully_created)
|
||||
|
||||
/// The minimum client BYOND build to disable screentip icons for.
|
||||
#define MIN_BYOND_BUILD_DISABLE_SCREENTIP_ICONS 1657
|
||||
/// The maximum client BYOND build to disable screentip icons for.
|
||||
/// Update this whenever https://www.byond.com/forum/post/2967731 is fixed.
|
||||
#define MAX_BYOND_BUILD_DISABLE_SCREENTIP_ICONS 1699
|
||||
|
||||
@@ -896,6 +896,9 @@
|
||||
|
||||
if (contextual_screentip_returns & CONTEXTUAL_SCREENTIP_SET)
|
||||
var/screentip_images = active_hud.screentip_images
|
||||
// Disable screentip images for clients affected by https://www.byond.com/forum/post/2967731
|
||||
if(ISINRANGE(client?.byond_build, MIN_BYOND_BUILD_DISABLE_SCREENTIP_ICONS, MAX_BYOND_BUILD_DISABLE_SCREENTIP_ICONS))
|
||||
screentip_images = FALSE
|
||||
// LMB and RMB on one line...
|
||||
var/lmb_text = build_context(context, SCREENTIP_CONTEXT_LMB, screentip_images)
|
||||
var/rmb_text = build_context(context, SCREENTIP_CONTEXT_RMB, screentip_images)
|
||||
|
||||
Reference in New Issue
Block a user