Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit 2f4132ad authored by Sood's avatar Sood Committed by clusterfack
Browse files

Minor performance improvement for supermatter cascade

parent a8c2b169
......@@ -10,7 +10,6 @@
//light_color="#0066FF"
layer = LIGHTING_LAYER + 1
var/spawned=0 // DIR mask
var/next_check=0
var/list/avail_dirs = list(NORTH,SOUTH,EAST,WEST)
......@@ -40,6 +39,9 @@
var/pdir = pick(avail_dirs)
avail_dirs -= pdir
var/turf/T=get_step(src,pdir)
if(istype(T, /turf/unsimulated/wall/supermatter/))
avail_dirs -= pdir
return
// EXPAND DONG
if(isturf(T))
......@@ -58,10 +60,9 @@
A = null
tcheck(80,1)
T.ChangeTurf(type)
if((spawned & (NORTH|SOUTH|EAST|WEST)) == (NORTH|SOUTH|EAST|WEST))
processing_objects -= src
return
var/turf/unsimulated/wall/supermatter/SM = T
if(SM.avail_dirs)
SM.avail_dirs -= get_dir(T, src)
/turf/unsimulated/wall/supermatter/attack_paw(mob/user as mob)
return attack_hand(user)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment