Disable screentip images for clients on BYOND 516.1657+ (#90613)

This commit is contained in:
Lucy
2025-04-15 11:19:07 +02:00
committed by GitHub
parent c13ae4a28e
commit 04c1d233d0
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -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
+3
View File
@@ -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)