From f0e4e2782175c132f8190a05b4550f8167b87e05 Mon Sep 17 00:00:00 2001 From: Aryn Date: Fri, 21 Feb 2014 03:46:30 -0700 Subject: [PATCH] Fixed a special case with simulated turfs being replaced by space. Actually any unsimulated turf, but mostly space. --- baystation12.int | 3 +++ code/game/turfs/turf.dm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/baystation12.int b/baystation12.int index b82874fded5..b9efdebddff 100644 --- a/baystation12.int +++ b/baystation12.int @@ -1,6 +1,9 @@ // BEGIN_INTERNALS /* MAP_ICON_TYPE: 0 +WINDOW: code\ZAS\Turf.dm;code\game\turfs\turf.dm;code\ZAS\Zone.dm +DIR: code code\game code\game\turfs code\ZAS +FILE: code\game\turfs\turf.dm AUTO_FILE_DIR: OFF */ // END_INTERNALS diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index ff47a1fa72a..65231916c8f 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -216,6 +216,9 @@ var/old_lumcount = lighting_lumcount - initial(lighting_lumcount) + if(!ispath(N,/turf/simulated) && istype(src,/turf/simulated)) + src:zone:remove(src) + if(ispath(N, /turf/simulated/floor)) //if the old turf had a zone, connect the new turf to it as well - Cael //Adjusted by SkyMarshal 5/10/13 - The air master will handle the addition of the new turf.