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:
Tad Hardesty
2017-12-29 11:40:06 -08:00
committed by ShizCalev
parent 555f2ce006
commit f2dbe5cf13
96 changed files with 174 additions and 165 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
for(var/area/A in world)
if(on_station)
var/turf/picked = safepick(get_area_turfs(A.type))
if(picked && (picked.z in GLOB.station_z_levels))
if(picked && is_station_level(picked.z))
if(!(A.type in areas_all) && !is_type_in_typecache(A, station_areas_blacklist))
areas_all.Add(A.type)
else if(!(A.type in areas_all))
+1 -1
View File
@@ -35,7 +35,7 @@
return FALSE
if(onstation)
var/turf/T = get_turf(applicant)
if(!(T.z in GLOB.station_z_levels))
if(!is_station_level(T.z))
return FALSE
if(conscious && applicant.stat) //incase you don't care about a certain antag being unconcious when made, ie if they have selfhealing abilities.
return FALSE