Fix changeturf not working quite right with space turfs (#3269)

ChangeTurf(/turf/space) will now always changeturf to openturfs if there is a below Z; this fixes some oddities with singularities.
This commit is contained in:
Lohikar
2017-08-11 18:27:01 +03:00
committed by Erki
parent cde0531a06
commit d6e8e781eb
+3 -5
View File
@@ -27,11 +27,9 @@
if (!N)
return
// This makes sure that turfs are not changed to space when one side is part of a zone
if(N == /turf/space)
var/turf/below = GetBelow(src)
if(istype(below) && !istype(below,/turf/space))
N = /turf/simulated/open
// This makes sure that turfs are not changed to space when there's a multi-z turf below
if(N == /turf/space && HasBelow(z))
N = /turf/simulated/open
var/obj/fire/old_fire = fire
var/old_baseturf = baseturf