Version 515 warning message (#3269)

## About The Pull Request

Changes the warning message to inform that 515 isn't supported.
This commit is contained in:
LT3
2025-03-08 19:26:43 -08:00
committed by GitHub
parent c46afcf699
commit ef3188942e
+3 -2
View File
@@ -129,11 +129,12 @@ SUBSYSTEM_DEF(statpanels)
#if MIN_COMPILER_VERSION > 515
#warn 516 is most certainly out of beta, remove this beta notice if you haven't already
#endif
var/static/list/beta_notice = list("", "You are on the BYOND 516 beta, various UIs and such may be broken!", "Please report issues, and switch back to BYOND 515 if things are causing too many issues for you.")
//var/static/list/beta_notice = list("", "You are on the BYOND 516 beta, various UIs and such may be broken!", "Please report issues, and switch back to BYOND 515 if things are causing too many issues for you.")
var/static/list/old_version_notice = list("", "This server is designed for version 516, you are using an older version 515!", "You may experience issues and crashes, switch to BYOND 516 if things are causing too many issues for you.") // BUBBER EDIT CHANGE - Change version notice to 515
if(!global_data)//statbrowser hasnt fired yet and we were called from immediate_send_stat_data()
return
target.stat_panel.send_message("update_stat", list(
"global_data" = global_data, // BUBBER EDIT CHANGE - Remove beta notice
"global_data" = (target.byond_version < 516) ? (global_data + old_version_notice) : global_data, // BUBBER EDIT CHANGE - Change version notice to 515
"ping_str" = "Ping: [round(target.lastping, 1)]ms (Average: [round(target.avgping, 1)]ms)",
"other_str" = target.mob?.get_status_tab_items(),
))