From 522b7fd0261b859051cd24db6b00763d00aecf16 Mon Sep 17 00:00:00 2001 From: Conor Doyle <71293867+Knightry123@users.noreply.github.com> Date: Tue, 12 Jan 2021 09:59:42 +0000 Subject: [PATCH] Update newscaster.dm (#15280) * Update newscaster.dm I fixed the bug allowing it to brodcast with no power * Update code/modules/newscaster/obj/newscaster.dm Co-authored-by: Farie82 Co-authored-by: Farie82 --- code/modules/newscaster/obj/newscaster.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/newscaster/obj/newscaster.dm b/code/modules/newscaster/obj/newscaster.dm index 51c99518bc7..f3a87eaac4e 100644 --- a/code/modules/newscaster/obj/newscaster.dm +++ b/code/modules/newscaster/obj/newscaster.dm @@ -676,6 +676,8 @@ * * wanted_notice - Whether the alert is a wanted notice notification (overrides announcement) */ /obj/machinery/newscaster/proc/alert_news(announcement, wanted_notice = FALSE) + if(!is_operational()) + return if(wanted_notice) atom_say("Attention! Wanted issue distributed!") playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, TRUE)