Fix baseturf helper (#40281)

Would cause issues with turfs where all their baseturfs got removed.

Also switches airless asteroid baseturf to itself.
This commit is contained in:
AnturK
2018-09-15 19:55:05 +02:00
committed by Tad Hardesty
parent 7429f095dd
commit 1e894c07d9
2 changed files with 8 additions and 2 deletions

View File

@@ -39,11 +39,16 @@
for(var/i in baseturf_cache)
if(baseturf_to_replace[i])
baseturf_cache -= i
if(!baseturf_cache.len)
thing.assemble_baseturfs(baseturf)
else
thing.PlaceOnBottom(null, baseturf)
else if(baseturf_to_replace[thing.baseturfs])
thing.assemble_baseturfs(baseturf)
return
else
thing.PlaceOnBottom(null, baseturf)
thing.PlaceOnBottom(null, baseturf)
/obj/effect/baseturf_helper/space
name = "space baseturf editor"