mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Fix holopad calls keeping off-camera turfs static even after you leave the call. (#91547)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user