Teleport code sort of fixed. No longer is stopped by dense objects or turfs. Unable to locate why it still has errors occasionally.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@498 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
crazyclonetheninja
2010-11-28 01:25:06 +00:00
parent 5066055200
commit 45bd584067

View File

@@ -172,18 +172,14 @@
L += B
A = pick(L)
var/list/L = list()
var/list/Q = list()
for(var/turf/T in A)
if(!T.density)
var/clear = 1
for(var/obj/O in T)
if(O.density)
clear = 0
break
if(clear)
L+=T
if (L.len)
usr.loc = pick(L)
var/clear = 1
if(clear)
Q+=T
// A = pick(Q)
if (Q.len)
usr.loc = pick(Q)
else
usr << "Teleporting to that area doesn't seem to be working currently. But at least now it tells you that."