Fix holopad calls keeping off-camera turfs static even after you leave the call. (#91547)

This commit is contained in:
_0Steven
2025-06-12 15:49:54 -06:00
committed by GitHub
parent 2e1f6c4db8
commit 30993aa3f0
3 changed files with 7 additions and 4 deletions
@@ -124,8 +124,6 @@
for(var/datum/action/actions_removed as anything in actions)
actions_removed.Remove(user)
for(var/datum/camerachunk/camerachunks_gone as anything in eyeobj.visibleCameraChunks)
camerachunks_gone.remove(eyeobj)
eyeobj.assign_user(null)
current_user = null
+6 -2
View File
@@ -22,11 +22,15 @@
GLOB.camera_eyes += src
/mob/eye/camera/Destroy()
for(var/datum/camerachunk/chunk in visibleCameraChunks)
chunk.remove(src)
clear_camera_chunks()
GLOB.camera_eyes -= src
return ..()
/// Clears us from any visible camera chunks.
/mob/eye/camera/proc/clear_camera_chunks()
for(var/datum/camerachunk/chunk in visibleCameraChunks)
chunk.remove(src)
/**
* Getter proc for getting the current user's client.
*
+1
View File
@@ -60,6 +60,7 @@
var/client/old_user_client = GetViewerClient()
if(user_image && old_user_client)
old_user_client.images -= user_image
clear_camera_chunks()
user_ref = WEAKREF(new_user) //The user_ref can still be null!