mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Patches some of the most common runtimes
Avoids the runtimes, rather than fixing the underlying problems in most cases
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
if(!M.client || isnewplayer(M))
|
if(!M.client || isnewplayer(M))
|
||||||
continue
|
continue
|
||||||
var/T = get_turf(user)
|
var/T = get_turf(user)
|
||||||
if(M.stat == DEAD && M.client && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null)) && (user.client)) //SKYRAT CHANGE - only user controlled mobs show their emotes to all-seeing ghosts, to reduce chat spam
|
if(M.stat == DEAD && M.client && (M.client.prefs && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT)) && !(M in viewers(T, null)) && (user.client)) //SKYRAT CHANGE - only user controlled mobs show their emotes to all-seeing ghosts, to reduce chat spam
|
||||||
M.show_message(dchatmsg) //SKYRAT CHANGE
|
M.show_message(dchatmsg) //SKYRAT CHANGE
|
||||||
|
|
||||||
if(emote_type == EMOTE_AUDIBLE)
|
if(emote_type == EMOTE_AUDIBLE)
|
||||||
|
|||||||
@@ -107,6 +107,9 @@
|
|||||||
if(!isturf(loc) && command)
|
if(!isturf(loc) && command)
|
||||||
return
|
return
|
||||||
var/turf/T = get_turf(loc)
|
var/turf/T = get_turf(loc)
|
||||||
|
if(!istype(T))
|
||||||
|
return
|
||||||
|
|
||||||
T.air_update_turf(command)
|
T.air_update_turf(command)
|
||||||
|
|
||||||
/turf/air_update_turf(command = 0)
|
/turf/air_update_turf(command = 0)
|
||||||
|
|||||||
@@ -92,6 +92,8 @@
|
|||||||
on = FALSE
|
on = FALSE
|
||||||
if(!on || welded)
|
if(!on || welded)
|
||||||
return
|
return
|
||||||
|
if (!loc)
|
||||||
|
return
|
||||||
|
|
||||||
var/datum/gas_mixture/air_contents = airs[1]
|
var/datum/gas_mixture/air_contents = airs[1]
|
||||||
var/datum/gas_mixture/environment = loc.return_air()
|
var/datum/gas_mixture/environment = loc.return_air()
|
||||||
|
|||||||
@@ -422,7 +422,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
|||||||
|
|
||||||
if(holder)
|
if(holder)
|
||||||
add_admin_verbs()
|
add_admin_verbs()
|
||||||
to_chat(src, get_message_output("memo"))
|
var/memos = get_message_output("memo")
|
||||||
|
if (memos)
|
||||||
|
to_chat(src, memos)
|
||||||
adminGreet()
|
adminGreet()
|
||||||
|
|
||||||
add_verbs_from_config()
|
add_verbs_from_config()
|
||||||
@@ -466,7 +468,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
|||||||
|
|
||||||
if(CONFIG_GET(flag/autoconvert_notes))
|
if(CONFIG_GET(flag/autoconvert_notes))
|
||||||
convert_notes_sql(ckey)
|
convert_notes_sql(ckey)
|
||||||
to_chat(src, get_message_output("message", ckey))
|
var/ckeyMessage = get_message_output("message", ckey)
|
||||||
|
if (ckeyMessage)
|
||||||
|
to_chat(src, ckeyMessage)
|
||||||
if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them.
|
if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them.
|
||||||
to_chat(src, "<span class='warning'>Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.</span>")
|
to_chat(src, "<span class='warning'>Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -286,9 +286,9 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
|
|||||||
if(!M.client || !client) //client is so that ghosts don't have to listen to mice
|
if(!M.client || !client) //client is so that ghosts don't have to listen to mice
|
||||||
continue
|
continue
|
||||||
if(get_dist(M, source) > 7 || M.z != z) //they're out of range of normal hearing
|
if(get_dist(M, source) > 7 || M.z != z) //they're out of range of normal hearing
|
||||||
if(eavesdropping_modes[message_mode] && !(M.client.prefs.chat_toggles & CHAT_GHOSTWHISPER)) //they're whispering and we have hearing whispers at any range off
|
if(eavesdropping_modes[message_mode] && !(M.client.prefs && (M.client.prefs.chat_toggles & CHAT_GHOSTWHISPER))) //they're whispering and we have hearing whispers at any range off
|
||||||
continue
|
continue
|
||||||
if(!(M.client.prefs.chat_toggles & CHAT_GHOSTEARS)) //they're talking normally and we have hearing at any range off
|
if(!(M.client.prefs && (M.client.prefs.chat_toggles & CHAT_GHOSTEARS))) //they're talking normally and we have hearing at any range off
|
||||||
continue
|
continue
|
||||||
listening |= M
|
listening |= M
|
||||||
the_dead[M] = TRUE
|
the_dead[M] = TRUE
|
||||||
|
|||||||
Reference in New Issue
Block a user