Cleanup A Remote View Proc (#19493)

* remove bad arguments

* fix that

* Fixed order
This commit is contained in:
Will
2026-05-31 02:14:33 +02:00
committed by GitHub
parent 958a22b209
commit 43e1f04020
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -114,6 +114,10 @@
if(settings.use_zoom_hud && !host_mob.hud_used.hud_shown)
host_mob.toggle_zoom_hud()
// Unregister remaining signals
// to_chat(world, "======================================== ENDED VIEW on: [remote_view_target]")
. = ..()
// Update the mob's vision right away if it still exists
if(!QDELETED(host_mob) && host_mob.client)
settings.detatch_from_mob(src, host_mob)
@@ -123,10 +127,6 @@
host_mob.handle_vision()
host_mob.handle_regular_hud_updates()
// Unregister remaining signals
// to_chat(world, "======================================== ENDED VIEW on: [remote_view_target]")
. = ..()
// Finish cleanup
QDEL_NULL(settings)
host_mob = null