Full-auto and camera bug fixes. (#14061)

This commit is contained in:
Matt Atlas
2022-05-23 18:02:51 +02:00
committed by GitHub
parent 9b2c658781
commit a8059e5f07
4 changed files with 80 additions and 21 deletions

View File

@@ -99,6 +99,14 @@
if(!(current_network in C.network))
return
var/access_granted = FALSE
for(var/network in C.network)
if(can_access_network(usr, get_camera_access(network)))
access_granted = TRUE //We only need access to one of the networks.
if(!access_granted)
to_chat(usr, SPAN_WARNING("Access unauthorized."))
return
switch_to_camera(usr, C)
return TRUE
@@ -131,14 +139,6 @@
to_chat(user, SPAN_NOTICE("This camera is too far away to connect to!"))
return FALSE
var/access_granted = FALSE
for(var/network in C.network)
if(can_access_network(user, get_camera_access(network)))
access_granted = TRUE //We only need access to one of the networks.
if(!access_granted)
to_chat(user, SPAN_WARNING("Access unauthorized."))
return
set_current(C)
user.machine = ui_host()
user.reset_view(current_camera)