mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user