From d1f17d31b97e8b57c6a59ac3fa54e87f7606306b Mon Sep 17 00:00:00 2001
From: Phoenix404 <41524861+Phoenix4O4@users.noreply.github.com>
Date: Wed, 11 Dec 2024 03:31:46 +0300
Subject: [PATCH] small notification addition
---
code/modules/client/client_procs.dm | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index cc3f8b252403..5b1a5fad57e3 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -389,34 +389,35 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
connection_realtime = world.realtime
connection_timeofday = world.timeofday
winset(src, null, "command=\".configure graphics-hwmode on\"")
- var/cev = CONFIG_GET(number/client_error_version)
- var/ceb = CONFIG_GET(number/client_error_build)
- var/cwv = CONFIG_GET(number/client_warn_version)
- if (byond_version < cev || (byond_version == cev && byond_build < ceb)) //Out of date client.
- to_chat(src, "Your version of BYOND is too old:")
- to_chat(src, CONFIG_GET(string/client_error_message))
- to_chat(src, "Your version: [byond_version].[byond_build]")
- to_chat(src, "Required version: [cev].[ceb] or later")
- to_chat(src, "Visit BYOND's website to get the latest version of BYOND.")
+ // Bluemoon Edit:Start Better byond warning
+ var/breaking_version = CONFIG_GET(number/client_error_version)
+ var/breaking_build = CONFIG_GET(number/client_error_build)
+ var/warn_version = CONFIG_GET(number/client_warn_version)
+ if (byond_version < breaking_version || (byond_version == breaking_version && byond_build < breaking_build)) //Out of date client.
+ to_chat_immediate(src, span_danger("Your version of BYOND is too old:"))
+ to_chat_immediate(src, CONFIG_GET(string/client_error_message))
+ to_chat_immediate(src, "Your version: [byond_version].[byond_build]")
+ to_chat_immediate(src, "Required version: [breaking_version].[breaking_build] or later")
+ to_chat_immediate(src, "Visit BYOND's website to get the latest version of BYOND.")
if (connecting_admin)
- to_chat(src, "Because you are an admin, you are being allowed to walk past this limitation, But it is still STRONGLY suggested you upgrade")
+ to_chat_immediate(src, "Because you are an admin, you are being allowed to walk past this limitation, But it is still STRONGLY suggested you upgrade")
+ // Bluemoon Edit:End Better byond warning
else
qdel(src)
return FALSE
- else if (byond_version < cwv) //We have words for this client.
+ else if (byond_version < warn_version) // Bluemoon Edit: Better byond warning //We have words for this client.
if(CONFIG_GET(flag/client_warn_popup))
var/msg = "Your version of byond may be getting out of date:
"
msg += CONFIG_GET(string/client_warn_message) + "
"
msg += "Your version: [byond_version]
"
- msg += "Required version to remove this message: [cwv] or later
"
+ msg += "Required version to remove this message: [warn_version] or later
" // Bluemoon Edit: Better byond warning
msg += "Visit BYOND's website to get the latest version of BYOND.
"
src << browse(msg, "window=warning_popup")
else
to_chat(src, "Your version of byond may be getting out of date:")
to_chat(src, CONFIG_GET(string/client_warn_message))
to_chat(src, "Your version: [byond_version]")
- to_chat(src, "Required version to remove this message: [cwv] or later")
- to_chat(src, "Visit BYOND's website to get the latest version of BYOND.")
+ to_chat(src, "Required version to remove this message: [warn_version] or later") // Bluemoon Edit: Better byond warning
if (connection == "web" && !connecting_admin)
if (!CONFIG_GET(flag/allow_webclient))