Warning if clients are still on 515 (#29067)

This commit is contained in:
AffectedArc07
2025-04-21 19:10:04 +01:00
committed by GitHub
parent 78db7a38ff
commit df366b399b
+13
View File
@@ -457,6 +457,7 @@
tooltips = new /datum/tooltip(src)
Master.UpdateTickRate()
INVOKE_ASYNC(src, TYPE_PROC_REF(/client, nag_516))
// Tell clients about active testmerges
if(world.TgsAvailable() && length(GLOB.revision_info.testmerges))
@@ -1338,6 +1339,18 @@
window_scaling = text2num(winget(src, null, "dpi"))
// This is in its own proc so we can async it out
/client/proc/nag_516()
if(byond_version >= 516)
return
var/choice = alert(src, "Warning - You are currently on BYOND version [byond_version].[byond_build]. Soon, Paradise will start enforcing 516 as the minimum required version, and 515 will no longer work. Please update now to avoid being unable to play in the future.", "BYOND Version Warning", "Update Now", "Ignore for now")
if(choice != "Update Now")
return
src << link("https://secure.byond.com/download/")
#undef LIMITER_SIZE
#undef CURRENT_SECOND
#undef SECOND_COUNT