Elevator music no longer haunts you endlessly if you step off mid-transit (#85039)

## About The Pull Request

Closes #76043
Z level check in an elevator backfired. There is no case where this
check actually needs to exist, if a mob stepped off the tracked tile it
should get freed from elevator music torture no matter what.

## Changelog
🆑
fix: Elevator music no longer haunts you endlessly if you step off
mid-transit
/🆑
This commit is contained in:
SmArtKar
2024-07-19 00:38:22 +01:00
committed by SkyratBot
parent 6e79dfa4bc
commit ae9ddc05e0

View File

@@ -83,8 +83,6 @@ GLOBAL_LIST_EMPTY(elevator_music)
/datum/proximity_monitor/advanced/elevator_music_area/field_turf_uncrossed(mob/exited, turf/old_location, turf/new_location) /datum/proximity_monitor/advanced/elevator_music_area/field_turf_uncrossed(mob/exited, turf/old_location, turf/new_location)
if (!(exited in tracked_mobs)) if (!(exited in tracked_mobs))
return return
if (exited.z == host.z && get_dist(exited, host) <= current_range)
return
qdel(tracked_mobs[exited]) qdel(tracked_mobs[exited])
tracked_mobs -= exited tracked_mobs -= exited
UnregisterSignal(exited, COMSIG_QDELETING) UnregisterSignal(exited, COMSIG_QDELETING)