mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13.git
synced 2026-07-21 21:26:05 +01:00
Fix
This commit is contained in:
@@ -308,7 +308,7 @@
|
||||
*/
|
||||
|
||||
/obj/item/modular_computer/proc/alert_call(datum/computer_file/program/caller1, alerttext, sound = 'sound/machines/twobeep_high.ogg')
|
||||
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
|
||||
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
|
||||
return
|
||||
playsound(src, sound, 50, TRUE)
|
||||
visible_message(span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
ui_interact(user)
|
||||
|
||||
/obj/item/modular_computer/processor/alert_call(datum/computer_file/program/caller1, alerttext)
|
||||
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext)
|
||||
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext)
|
||||
return
|
||||
playsound(src, 'sound/machines/twobeep_high.ogg', 50, TRUE)
|
||||
machinery_computer.visible_message(span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/modular_computer/tablet/integrated/alert_call(datum/computer_file/program/caller1, alerttext, sound = 'sound/machines/twobeep_high.ogg')
|
||||
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
|
||||
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
|
||||
return
|
||||
borgo.playsound_local(src, sound, 50, TRUE)
|
||||
to_chat(borgo, span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))
|
||||
|
||||
Reference in New Issue
Block a user