- Fixes issue 675. I just added a few Move() -s and it works fine.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4468 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-08-17 08:01:13 +00:00
parent c2734300b2
commit 097aae989c
3 changed files with 44 additions and 10 deletions
+7 -1
View File
@@ -42,7 +42,13 @@
if(clear)
L+=T
target.loc = pick(L)
var/attempt = 0
var/success = 0
while(!success)
success = target.Move(pick(L))
if(attempt > 20) break //Failsafe
if(!success)
target.loc = pick(L)
return
+12 -2
View File
@@ -40,7 +40,12 @@
animation.dir = target.dir
flick("phase_shift2",animation)
sleep(5)
target.loc = mobloc
if(!target.Move(mobloc))
for(var/direction in list(1,2,4,8,5,6,9,10))
var/turf/T = get_step(mobloc, direction)
if(T)
if(target.Move(T))
break
target.canmove = 1
target.client.eye = target
del(animation)
@@ -61,7 +66,12 @@
sleep(20)
flick("reappear",animation)
sleep(5)
target.loc = mobloc
if(!target.Move(mobloc))
for(var/direction in list(1,2,4,8,5,6,9,10))
var/turf/T = get_step(mobloc, direction)
if(T)
if(target.Move(T))
break
target.canmove = 1
target.client.eye = target
del(animation)