Recoded wall-smoothing for optimization. Fixes #835.

Conflicts:
	code/game/smoothwall.dm
	code/game/turfs/simulated/walls.dm
	code/modules/power/singularity/singularity.dm
This commit is contained in:
Rob Nelson
2014-07-25 13:07:11 -07:00
committed by ZomgPonies
parent 2e1266293b
commit 2873262a07
4 changed files with 98 additions and 162 deletions
@@ -301,6 +301,9 @@ var/global/list/uneatable = list(
gain = 2
else if(isturf(A))
var/turf/T = A
if(istype(T,/turf/simulated/wall))
var/turf/simulated/wall/W = T
W.del_suppress_resmoothing=1 // Reduce lag from wallsmoothing.
if(T.intact)
for(var/obj/O in T.contents)
if(O.level != 1)
@@ -565,6 +568,9 @@ var/global/list/uneatable = list(
O.loc = null
else if(isturf(A))
var/turf/T = A
if(istype(T,/turf/simulated/wall))
var/turf/simulated/wall/W = T
W.del_suppress_resmoothing=1 // Reduce lag from wallsmoothing.
if(T.intact)
for(var/obj/O in T.contents)
if(O.level != 1)