Skip to content

Commit

Permalink
my ears are finally saved
Browse files Browse the repository at this point in the history
  • Loading branch information
Huz2e committed Jul 13, 2024
1 parent 572018c commit 2160a1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/game/machinery/doors/firedoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
/obj/machinery/door/firedoor/proc/start_activation_process(code = FIRELOCK_ALARM_TYPE_GENERIC)
if(active)
return //We're already active
soundloop.start()
// soundloop.start() - MASSMETA EDIT DELETION
is_playing_alarm = TRUE
my_area.fault_status = AREA_FAULT_AUTOMATIC
my_area.fault_location = name
Expand All @@ -342,7 +342,7 @@
* in the merge group datum. sets our alarm type to null, signifying no alarm.
*/
/obj/machinery/door/firedoor/proc/start_deactivation_process()
soundloop.stop()
// soundloop.stop() - MASSMETA EDIT DELETION
is_playing_alarm = FALSE
my_area.fault_status = AREA_FAULT_NONE
my_area.fault_location = null
Expand Down Expand Up @@ -397,7 +397,7 @@
alarm_type = null
active = FALSE
remove_as_source()
soundloop.stop()
// soundloop.stop() - MASSMETA EDIT DELETION
is_playing_alarm = FALSE
update_appearance(UPDATE_ICON) //Sets the door lights even if the door doesn't move.
correct_state()
Expand All @@ -414,7 +414,7 @@
if(!length(issue_turfs)) // Generic alarms get out
alarm_type = null

soundloop.stop()
// soundloop.stop() - MASSMETA EDIT DELETION
is_playing_alarm = FALSE
remove_as_source()
update_appearance(UPDATE_ICON) //Sets the door lights even if the door doesn't move.
Expand Down Expand Up @@ -469,15 +469,15 @@
/obj/machinery/door/firedoor/proc/on_power_loss()
SIGNAL_HANDLER

soundloop.stop()
// soundloop.stop() - MASSMETA EDIT DELETION

/obj/machinery/door/firedoor/proc/on_power_restore()
SIGNAL_HANDLER

correct_state()

if(is_playing_alarm)
soundloop.start()
// if(is_playing_alarm) - MASSMETA EDIT DELETION
// soundloop.start()


/obj/machinery/door/firedoor/attack_hand(mob/living/user, list/modifiers)
Expand Down
3 changes: 3 additions & 0 deletions code/game/machinery/firealarm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
/obj/machinery/firealarm/proc/set_status()
if(!(my_area.fire || LAZYLEN(my_area.active_firelocks)) || (obj_flags & EMAGGED))
soundloop.stop()
else // MASSMETA EDIT ADDITION START
soundloop.start() // MASSMETA EDIT ADDITION END
update_appearance()

/obj/machinery/firealarm/update_appearance(updates)
Expand Down Expand Up @@ -252,6 +254,7 @@
return

if(my_area.fire)
soundloop.start() // MASSMETA EDIT ADDITION
return //area alarm already active
my_area.alarm_manager.send_alarm(ALARM_FIRE, my_area)
// This'll setup our visual effects, so we only need to worry about the alarm
Expand Down

0 comments on commit 2160a1a

Please sign in to comment.