From 5084bdf09b426a98c870cb62d2d4c8bb8654f07c Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Mon, 4 Jul 2011 22:32:11 +0000 Subject: [PATCH] You can now only drag and drop mobs onto morgue trays. No more dragging of UI icons and such. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1766 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/morgue.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/machinery/morgue.dm b/code/game/machinery/morgue.dm index 8a581fc6a90..200c5d0e48d 100644 --- a/code/game/machinery/morgue.dm +++ b/code/game/machinery/morgue.dm @@ -125,6 +125,8 @@ /obj/m_tray/MouseDrop_T(atom/movable/O as mob|obj, mob/user as mob) if ((!( istype(O, /atom/movable) ) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src))) return + if (!ismob(O)) + return O.loc = src.loc if (user != O) for(var/mob/B in viewers(user, 3))