mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Changes checks for zlevel 1 to map.zMainStation (#11379)
* Changes checks for zlevel 1 to map.zMainStation * Replace all hard z-level checks with checks from _map.dm * Hey look at all this manual z assignment (basically none) * Whoops * nanouwhy * aaaa * w h y
This commit is contained in:
@@ -142,12 +142,12 @@ datum/controller/game_controller/proc/buildcamlist()
|
||||
if(!istype(cameranet) || !istype(cameranet.cameras) || !cameranet.cameras.len)
|
||||
world.log << "cameranet has not been initialized before us, finding cameras manually."
|
||||
for(var/obj/machinery/camera/C in world) //can't use machines list because cameras are removed from it.
|
||||
if(C.z == 1 || C.z == 5)
|
||||
if(C.z == map.zMainStation || C.z == map.zAsteroid)
|
||||
var/list/ourlist = adv_camera.camerasbyzlevel["[C.z]"]
|
||||
ourlist += C
|
||||
else
|
||||
for(var/obj/machinery/camera/C in cameranet.cameras) //can't use machines list because cameras are removed from it.
|
||||
if(C.z == 1 || C.z == 5)
|
||||
if(C.z == map.zMainStation || C.z == map.zAsteroid)
|
||||
var/list/ourlist = adv_camera.camerasbyzlevel["[C.z]"]
|
||||
ourlist += C
|
||||
for(var/key in adv_camera.camerasbyzlevel)
|
||||
|
||||
Reference in New Issue
Block a user