Reworked some stuff to actually... work

This commit is contained in:
SkyMarshal
2012-01-05 09:39:44 -07:00
parent e164b21dc4
commit 421b49c3f0
2 changed files with 5113 additions and 5105 deletions

View File

@@ -932,6 +932,7 @@
desc = "An underfloor disposal pipe with a package sorting mechanism."
icon_state = "pipe-j1s"
var/list/sortType = list()
var/list/backType = list()
var/backsort = 0 //For sending disposal packets to upstream destinations.
var/mailsort = 0
var/posdir = 0
@@ -968,10 +969,16 @@
if(sortTag == src.sortType[i])
issort = 1
var/isback = 0
if(!issort && sortTag)
for(var/i, i <= backType.len, i++)
if(sortTag == src.backType[i])
isback = 1
if(issort || ((!sortTag || ismail) && mailsort)) //if destination matches filtered type...
return sortdir // exit through sortdirection
else if (backsort && sortTag)
return negdir
else if (isback)
return turn(fromdir, 180)
else
return posdir
else // came from sortdir