Fix issues with radiation controller on multi-z maps.

Radiation sources are by design z-level specific, the ray trace check needs to respect this.
This commit is contained in:
Leshana
2017-06-02 07:56:09 -04:00
parent 9dfc65b628
commit 8315abb352

View File

@@ -46,6 +46,8 @@ var/global/repository/radiation/radiation_repository = new()
var/datum/radiation_source/source = value
if(source.rad_power < .)
continue // Already being affected by a stronger source
if(source.source_turf.z != T.z)
continue // Radiation is not multi-z
var/dist = get_dist(source.source_turf, T)
if(dist > source.range)
continue // Too far to possibly affect