Fixes non-planet zlevel weather runtime cascade

Fixes the potentially server killing runtime spam caused by humanmobs walking on "outdoors" tiles on zlevels outside the range of the planetary weather system.
This commit is contained in:
Verkister
2019-10-25 11:20:48 +03:00
committed by GitHub
parent 5aeb868df5
commit 9e24f9e6ee
@@ -140,7 +140,7 @@
. += turf_move_cost
// Wind makes it easier or harder to move, depending on if you're with or against the wind.
if(T.outdoors)
if(T.outdoors && (T.z <= SSplanets.z_to_planet.len))
var/datum/planet/P = SSplanets.z_to_planet[z]
if(P)
var/datum/weather_holder/WH = P.weather_holder