[MIRROR] fix some remote view component desyncs and crashes (#11814)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-10-14 22:12:34 +02:00
committed by GitHub
co-authored by Will
parent b47246cc56
commit 9e39f50248
18 changed files with 65 additions and 15 deletions
+3 -1
View File
@@ -270,7 +270,9 @@ GLOBAL_LIST_EMPTY(all_waypoints)
. = TRUE
if("manual")
if(!viewing_overmap(ui.user) && linked)
if(check_eye(ui.user) < 0)
return FALSE
else if(!viewing_overmap(ui.user) && linked)
if(!viewers) viewers = list() // List must exist for pass by reference to work
start_coordinated_remoteview(ui.user, linked, viewers)
else
@@ -89,7 +89,9 @@
switch(action)
if("viewing")
if(ui.user && !isAI(ui.user))
if(!viewing_overmap(ui.user) && linked)
if(check_eye(ui.user) < 0)
. = FALSE
else if(!viewing_overmap(ui.user) && linked)
if(!viewers) viewers = list() // List must exist for pass by reference to work
start_coordinated_remoteview(ui.user, linked, viewers)
else