Fixes malf AI lockdown affecting doors on z levels other than station and mining.

Replaces a lot of z level numbers in code by their respective defines.
Adding a define for the Mining asteroid z level.
This commit is contained in:
phil235
2015-01-11 15:39:32 +01:00
parent cd3e08f624
commit a55e6a70be
30 changed files with 56 additions and 53 deletions

View File

@@ -22,7 +22,7 @@
var/nukecode = rand(10000, 99999)
for(var/obj/machinery/nuclearbomb/bomb in world)
if(bomb && bomb.r_code)
if(bomb.z == 1)
if(bomb.z == ZLEVEL_STATION)
bomb.r_code = nukecode
intercepttext += "<FONT size = 3><B>NanoTrasen Update</B>: Biohazard Alert.</FONT><HR>"
@@ -58,7 +58,7 @@
/datum/station_state/proc/count()
for(var/turf/T in world)
if(T.z != 1)
if(T.z != ZLEVEL_STATION)
continue
if(istype(T,/turf/simulated/floor))
@@ -80,7 +80,7 @@
src.r_wall += 1
for(var/obj/O in world)
if(O.z != 1)
if(O.z != ZLEVEL_STATION)
continue
if(istype(O, /obj/structure/window))