mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #9612 from VOREStation/upstream-merge-7839
[MIRROR] Fixed global_announce autospeaker
This commit is contained in:
committed by
Chompstation Bot
parent
26d1ac519a
commit
ac8a77dd06
@@ -49,10 +49,7 @@ var/global/datum/controller/subsystem/ticker/ticker
|
||||
/datum/controller/subsystem/ticker/Initialize()
|
||||
pregame_timeleft = config.pregame_time
|
||||
send2mainirc("Server lobby is loaded and open at byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
|
||||
|
||||
// Set up the global announcer
|
||||
GLOB.autospeaker = new (null, null, null, 1)
|
||||
|
||||
GLOB.autospeaker = new (null, null, null, 1) //Set up Global Announcer
|
||||
return ..()
|
||||
|
||||
/datum/controller/subsystem/ticker/fire(resumed = FALSE)
|
||||
|
||||
@@ -297,7 +297,8 @@ var/global/list/default_medbay_channels = list(
|
||||
playsound(src, "button", 10)
|
||||
|
||||
GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
|
||||
/obj/item/device/radio/proc/autosay(var/message, var/from, var/channel, var/list/zlevels) //BS12 EDIT
|
||||
|
||||
/obj/item/device/radio/proc/autosay(var/message, var/from, var/channel, var/list/zlevels)
|
||||
if(!GLOB.autospeaker)
|
||||
return
|
||||
var/datum/radio_frequency/connection = null
|
||||
@@ -308,7 +309,7 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
|
||||
else
|
||||
connection = radio_connection
|
||||
channel = null
|
||||
if (!istype(connection))
|
||||
if(!istype(connection))
|
||||
return
|
||||
|
||||
if(!LAZYLEN(zlevels))
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
icon_state = "mfloor1"
|
||||
random_icon_states = list("mfloor1", "mfloor2", "mfloor3", "mfloor4", "mfloor5", "mfloor6", "mfloor7")
|
||||
color = "#464f33"
|
||||
persistent = TRUE
|
||||
anchored = 1
|
||||
persistent = TRUE
|
||||
|
||||
/obj/effect/decal/cleanable/filth/Initialize()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user