mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user