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:
sood
2016-08-14 11:19:02 -07:00
committed by ComicIronic
parent 8d2742fe65
commit 8cb1b0aaf3
48 changed files with 81 additions and 81 deletions

View File

@@ -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)