diff --git a/code/game/machinery/camera/presets.dm b/code/game/machinery/camera/presets.dm index 8f57ad09203a..d5f7e618c637 100644 --- a/code/game/machinery/camera/presets.dm +++ b/code/game/machinery/camera/presets.dm @@ -56,18 +56,11 @@ /obj/machinery/camera/autoname/LateInitialize() . = ..() - number = 1 - var/area/A = get_area(src) - if(A) - for(var/obj/machinery/camera/autoname/C in GLOB.machines) - if(C == src) - continue - var/area/CA = get_area(C) - if(CA.type == A.type) - if(C.number) - number = max(number, C.number+1) - c_tag = "[A.name] #[number]" - + var/static/list/autonames_in_areas = list() + var/area/camera_area = get_area(src) + number = autonames_in_areas[camera_area] + 1 + autonames_in_areas[camera_area] = number + c_tag = "[format_text(camera_area.name)] #[number]" // UPGRADE PROCS