Skip to content

Commit

Permalink
Update announce.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafnik02 committed Nov 15, 2024
1 parent 496d827 commit 7cc3cf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/defines/procs/announce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GLOBAL_DATUM_INIT(event_announcement, /datum/announcement/priority/command/event
var/announcement_type = "Оповещение"
var/admin_announcement = 0 // Admin announcements are received regardless of being in range of a radio, unless you're in the lobby to prevent metagaming
var/language = LANGUAGE_GALACTIC_COMMON
var/beannounced = 1

/datum/announcement/New(var/do_log = 0, var/new_sound = null, var/do_newscast = 0)
sound = new_sound
Expand Down Expand Up @@ -47,6 +48,8 @@ GLOBAL_DATUM_INIT(event_announcement, /datum/announcement/priority/command/event
/datum/announcement/proc/Announce(message as text, new_title = "", new_sound = null, do_newscast = newscast, msg_sanitized = 0, from, msg_language)
if(!message)
return
if(!beannounced)
return

var/message_title = new_title ? new_title : title
var/message_sound = new_sound ? sound(new_sound) : sound
Expand Down

0 comments on commit 7cc3cf2

Please sign in to comment.