- Fixes issue 748. Pulling restrained monkeys now behaves as it's supposed to.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4462 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-08-17 05:37:11 +00:00
parent d7c1882e16
commit adbc74a942

View File

@@ -413,8 +413,8 @@
if (restrained())
for(var/mob/M in range(src, 1))
if ((M.pulling == src && M.stat == 0 && !( M.restrained() )))
return 0
if ((t7 && pulling && get_dist(src, pulling) <= 1))
t7 = null
if (t7 && (pulling && get_dist(src, pulling) <= 1))
if (pulling.anchored)
stop_pulling()
var/T = loc
@@ -422,7 +422,7 @@
if (!( isturf(pulling.loc) ))
stop_pulling()
return
if (!( restrained() ))
if (!buckled)
var/diag = get_dir(src, pulling)
if ((diag - 1) & diag)
else