Merge pull request #6116 from VOREStation/Verkister-patch-13-1

Fixes non-planet zlevel weather runtime cascade
This commit is contained in:
Novacat
2019-10-25 04:27:26 -04:00
committed by GitHub

View File

@@ -158,7 +158,7 @@
. += turf_move_cost . += turf_move_cost
// Wind makes it easier or harder to move, depending on if you're with or against the wind. // 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] var/datum/planet/P = SSplanets.z_to_planet[z]
if(P) if(P)
var/datum/weather_holder/WH = P.weather_holder var/datum/weather_holder/WH = P.weather_holder