mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Noted a wall-deletion optimization made over at -tg. Credit to @Aranclanos.
This commit is contained in:
@@ -101,14 +101,11 @@
|
|||||||
..()*/
|
..()*/
|
||||||
|
|
||||||
/turf/simulated/wall/Del()
|
/turf/simulated/wall/Del()
|
||||||
|
|
||||||
var/temploc = src.loc
|
|
||||||
|
|
||||||
spawn(10)
|
spawn(10)
|
||||||
for(var/turf/simulated/wall/W in range(temploc,1))
|
for(var/turf/simulated/wall/W in range(src,1))
|
||||||
W.relativewall()
|
W.relativewall()
|
||||||
|
|
||||||
for(var/obj/structure/falsewall/W in range(temploc,1))
|
for(var/obj/structure/falsewall/W in range(src,1))
|
||||||
W.relativewall()
|
W.relativewall()
|
||||||
|
|
||||||
for(var/direction in cardinal)
|
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()
|
/turf/simulated/wall/relativewall()
|
||||||
if(istype(src,/turf/simulated/wall/vault)) //HACK!!!
|
if(istype(src,/turf/simulated/wall/vault)) //HACK!!!
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user