Now acquires the max element from Z-level lists, not the max list.
This commit is contained in:
PsiOmega
2015-05-12 08:11:48 +02:00
parent c06323ef7a
commit c77f7eacb7
+8 -1
View File
@@ -17,7 +17,14 @@
return 0
/proc/max_default_z_level()
return max(config.station_levels, max(config.admin_levels, config.player_levels))
var/max_z = 0
for(var/z in config.station_levels)
max_z = max(z, max_z)
for(var/z in config.admin_levels)
max_z = max(z, max_z)
for(var/z in config.player_levels)
max_z = max(z, max_z)
return max_z
/proc/get_area(O)
var/turf/loc = get_turf(O)