From b3cd08068a5fb4da3f7e5ca303a4021f89bc3c76 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Tue, 19 Aug 2014 10:43:38 +0200 Subject: [PATCH] Noted a wall-deletion optimization made over at -tg. Credit to @Aranclanos. --- code/game/smoothwall.dm | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/code/game/smoothwall.dm b/code/game/smoothwall.dm index 1ec091ed6c..b8196dbc5c 100644 --- a/code/game/smoothwall.dm +++ b/code/game/smoothwall.dm @@ -101,14 +101,11 @@ ..()*/ /turf/simulated/wall/Del() - - var/temploc = src.loc - spawn(10) - for(var/turf/simulated/wall/W in range(temploc,1)) + for(var/turf/simulated/wall/W in range(src,1)) W.relativewall() - for(var/obj/structure/falsewall/W in range(temploc,1)) + for(var/obj/structure/falsewall/W in range(src,1)) W.relativewall() for(var/direction in cardinal) @@ -121,16 +118,6 @@ ..() -/*/turf/simulated/shuttle/wall/Del() - - var/temploc = src.loc - - spawn(10) - for(var/turf/simulated/shuttle/wall/W in range(temploc,1)) - W.relativewall() - - ..()*/ - /turf/simulated/wall/relativewall() if(istype(src,/turf/simulated/wall/vault)) //HACK!!! return