mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 05:22:40 +00:00
Full-auto and camera bug fixes. (#14061)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user