Merge pull request #2270 from Citadel-Station-13/upstream-merge-29711

[MIRROR] Fixes oversight with APCs using areastring
This commit is contained in:
LetterJay
2017-08-07 07:18:35 -05:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
for(var/obj/machinery/power/apc/C in GLOB.apcs_list)
if(C.cell && C.z == ZLEVEL_STATION)
var/area/A = get_area(C)
var/area/A = C.area
var/skip = 0
for(var/area_type in skipped_areas)
+2 -2
View File
@@ -133,8 +133,8 @@
active_apc.locked = TRUE
active_apc.update_icon()
active_apc = null
to_chat(usr, "<span class='robot notice'>[bicon(src)] Connected to APC in [get_area(APC)]. Interface request sent.</span>")
log_activity("remotely accessed APC in [get_area(APC)]")
to_chat(usr, "<span class='robot notice'>[bicon(src)] Connected to APC in [APC.area]. Interface request sent.</span>")
log_activity("remotely accessed APC in [APC.area]")
APC.interact(usr, GLOB.not_incapacitated_state)
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
message_admins("[key_name_admin(usr)] remotely accessed [APC] from [src] at [get_area(src)].")
+1 -1
View File
@@ -513,7 +513,7 @@ GLOBAL_PROTECT(AdminProcCallCount)
areas_all.Add(A.type)
for(var/obj/machinery/power/apc/APC in GLOB.apcs_list)
var/area/A = get_area(APC)
var/area/A = APC.area
if(!(A.type in areas_with_APC))
areas_with_APC.Add(A.type)