mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 12:03:11 +00:00
Fixed mobs who tried to walk whilst inside an unlocked, wrapped locker would disappear into nullspace. Fixes issue 905.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4671 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -224,7 +224,7 @@
|
||||
return
|
||||
|
||||
/obj/structure/closet/relaymove(mob/user as mob)
|
||||
if(user.stat)
|
||||
if(user.stat || !isturf(src.loc))
|
||||
return
|
||||
|
||||
if(!src.open())
|
||||
|
||||
@@ -99,11 +99,9 @@
|
||||
togglelock(user)
|
||||
|
||||
/obj/structure/closet/secure_closet/relaymove(mob/user as mob)
|
||||
if(user.stat)
|
||||
if(user.stat || !isturf(src.loc))
|
||||
return
|
||||
|
||||
if(user.stat)
|
||||
return
|
||||
if(!(src.locked))
|
||||
for(var/obj/item/I in src)
|
||||
I.loc = src.loc
|
||||
|
||||
Reference in New Issue
Block a user