mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Replace explicit z-level checks with defines (#33829)
* Replace explicit z-level checks with defines * Rename turf_z_is_planet for consistency * Use TRUE/FALSE in onSyndieBase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
/datum/mapGenerator/lavaland
|
||||
var/start_z = 5
|
||||
var/start_z = ZLEVEL_LAVALAND
|
||||
var/min_x = 0
|
||||
var/min_y = 0
|
||||
var/max_x = 0
|
||||
@@ -19,7 +19,7 @@
|
||||
/datum/mapGeneratorModule/river
|
||||
var/river_type = /turf/open/lava/smooth
|
||||
var/river_nodes = 4
|
||||
var/start_z = 5
|
||||
var/start_z = ZLEVEL_LAVALAND
|
||||
|
||||
/datum/mapGeneratorModule/river/generate()
|
||||
var/datum/mapGenerator/lavaland/L = mother
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
if(!istype(mother, /datum/mapGenerator/repair/reload_station_map))
|
||||
return
|
||||
var/datum/mapGenerator/repair/reload_station_map/mother1 = mother
|
||||
if(!(mother1.z in GLOB.station_z_levels))
|
||||
if(!is_station_level(mother1.z))
|
||||
return //This is only for reloading station blocks!
|
||||
GLOB.reloading_map = TRUE
|
||||
var/static/dmm_suite/reloader = new
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
/datum/mapGenerator/repair/reload_station_map/defineRegion(turf/start, turf/end)
|
||||
. = ..()
|
||||
if(!(start.z in GLOB.station_z_levels) || !(end.z in GLOB.station_z_levels))
|
||||
if(!is_station_level(start.z) || !is_station_level(end.z))
|
||||
return
|
||||
x_low = min(start.x, end.x)
|
||||
y_low = min(start.y, end.y)
|
||||
|
||||
Reference in New Issue
Block a user