mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
[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:
co-authored by
Will
parent
b47246cc56
commit
9e39f50248
@@ -73,7 +73,9 @@
|
||||
if(current_uav.check_eye(ui.user) < 0)
|
||||
to_chat(ui.user,span_warning("The screen freezes for a moment, before returning to the UAV selection menu. It's not able to connect to that UAV."))
|
||||
else
|
||||
if(!viewing_uav(ui.user))
|
||||
if(check_eye(ui.user) < 0)
|
||||
return FALSE
|
||||
else if(!viewing_uav(ui.user))
|
||||
if(!viewers) viewers = list() // List must exist for pass by reference to work
|
||||
start_coordinated_remoteview(ui.user, current_uav, viewers)
|
||||
else
|
||||
|
||||
@@ -136,7 +136,9 @@
|
||||
return FALSE
|
||||
|
||||
if(action == "viewing")
|
||||
if(!viewing_overmap(ui.user))
|
||||
if(check_eye(ui.user) < 0)
|
||||
return FALSE
|
||||
else if(!viewing_overmap(ui.user))
|
||||
if(!viewers) viewers = list() // List must exist for pass by reference to work
|
||||
start_coordinated_remoteview(ui.user, linked, viewers)
|
||||
else
|
||||
@@ -400,7 +402,9 @@
|
||||
. = TRUE
|
||||
|
||||
if("manual")
|
||||
if(!viewing_overmap(ui.user))
|
||||
if(check_eye(ui.user) < 0)
|
||||
return FALSE
|
||||
else if(!viewing_overmap(ui.user))
|
||||
if(!viewers) viewers = list()
|
||||
start_coordinated_remoteview(ui.user, linked, viewers)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user