diff --git a/code/modules/shuttle/computers/dropship_computer.dm b/code/modules/shuttle/computers/dropship_computer.dm index 4cd79f7fa62f..092513eceac4 100644 --- a/code/modules/shuttle/computers/dropship_computer.dm +++ b/code/modules/shuttle/computers/dropship_computer.dm @@ -384,6 +384,7 @@ msg_admin_niche(log) log_interact(user, msg = "[log]") shuttle.send_for_flyby() + stop_playing_launch_announcement_alarm() return TRUE update_equipment(is_optimised, FALSE) @@ -413,6 +414,7 @@ var/log = "[key_name(user)] launched the dropship [src.shuttleId] on transport." msg_admin_niche(log) log_interact(user, msg = "[log]") + stop_playing_launch_announcement_alarm() return TRUE if("button-push") playsound(loc, get_sfx("terminal_button"), KEYBOARD_SOUND_VOLUME, 1) @@ -476,11 +478,17 @@ shuttle.alarm_sound_loop.start() shuttle.playing_launch_announcement_alarm = TRUE return - if ("stop_play_launch_announcement_alarm") - shuttle.alarm_sound_loop.stop() - shuttle.playing_launch_announcement_alarm = FALSE + if ("stop_playing_launch_announcement_alarm") + stop_playing_launch_announcement_alarm() return +/obj/structure/machinery/computer/shuttle/dropship/flight/proc/stop_playing_launch_announcement_alarm() + var/obj/docking_port/mobile/marine_dropship/shuttle = SSshuttle.getShuttle(shuttleId) + + shuttle.alarm_sound_loop.stop() + shuttle.playing_launch_announcement_alarm = FALSE + return + /obj/structure/machinery/computer/shuttle/dropship/flight/lz1 icon = 'icons/obj/structures/machinery/computer.dmi' icon_state = "shuttle" diff --git a/tgui/packages/tgui/interfaces/DropshipFlightControl.tsx b/tgui/packages/tgui/interfaces/DropshipFlightControl.tsx index da911575e33e..bbb7fea96d2c 100644 --- a/tgui/packages/tgui/interfaces/DropshipFlightControl.tsx +++ b/tgui/packages/tgui/interfaces/DropshipFlightControl.tsx @@ -44,7 +44,10 @@ const DropshipDoorControl = (_, context) => { @@ -315,19 +318,11 @@ const LaunchAnnouncementAlarm = (_, context) => {
- {!data.playing_launch_announcement_alarm && ( - - )} - - {data.playing_launch_announcement_alarm && ( - - )} - + !data.playing_launch_announcement_alarm ? ( + + ) : ( + + ) } /> );