mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[NO GBP] Fixes an edge case with meteor moveloop code (#88229)
## About The Pull Request This felt like an infinite delete trap so I've tested it and didn't find anything but there's a couple of qdel loop traces in server logs, I think this happens if something destroys the meteor? ## Changelog 🆑 fix: Fixed an edge case with meteor moveloop code /🆑
This commit is contained in:
@@ -45,6 +45,9 @@
|
||||
|
||||
/obj/effect/meteor/Destroy()
|
||||
GLOB.meteor_list -= src
|
||||
var/datum/move_loop/moveloop = GLOB.move_manager.processing_on(src, SSmovement)
|
||||
if (!isnull(moveloop))
|
||||
UnregisterSignal(moveloop, COMSIG_MOVELOOP_STOP)
|
||||
return ..()
|
||||
|
||||
/obj/effect/meteor/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change = TRUE)
|
||||
|
||||
Reference in New Issue
Block a user