mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
Cleanup A Remote View Proc (#19493)
* remove bad arguments * fix that * Fixed order
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user