Patches some of the most common runtimes

Avoids the runtimes, rather than fixing the underlying problems in most cases
This commit is contained in:
James
2022-02-04 07:11:06 +00:00
parent a15af07445
commit f2db6db9b5
5 changed files with 14 additions and 5 deletions

View File

@@ -65,7 +65,7 @@
if(!M.client || isnewplayer(M))
continue
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
if(emote_type == EMOTE_AUDIBLE)

View File

@@ -107,6 +107,9 @@
if(!isturf(loc) && command)
return
var/turf/T = get_turf(loc)
if(!istype(T))
return
T.air_update_turf(command)
/turf/air_update_turf(command = 0)

View File

@@ -92,6 +92,8 @@
on = FALSE
if(!on || welded)
return
if (!loc)
return
var/datum/gas_mixture/air_contents = airs[1]
var/datum/gas_mixture/environment = loc.return_air()

View File

@@ -422,7 +422,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(holder)
add_admin_verbs()
to_chat(src, get_message_output("memo"))
var/memos = get_message_output("memo")
if (memos)
to_chat(src, memos)
adminGreet()
add_verbs_from_config()
@@ -466,7 +468,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(CONFIG_GET(flag/autoconvert_notes))
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.
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>")

View File

@@ -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
continue
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
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
listening |= M
the_dead[M] = TRUE