Ports sliding things along tables

This commit is contained in:
MistakeNot4892
2021-08-25 21:47:39 -04:00
committed by VirgoBot
parent 9d2280764e
commit e03d8429ae
4 changed files with 98 additions and 18 deletions
+8 -9
View File
@@ -15,14 +15,13 @@
return FALSE // should stop you from dragging through windows
return TRUE
/atom/MouseDrop(atom/over)
if(!usr || !over) return
if(!Adjacent(usr) || !over.Adjacent(usr)) return // should stop you from dragging through windows
/atom/MouseDrop(atom/over, src_location, over_location, src_control, over_control, params)
if(!usr || !over)
return
if(!Adjacent(usr) || !over.Adjacent(usr))
return // should stop you from dragging through windows
spawn(0)
over.MouseDrop_T(src,usr)
return
INVOKE_ASYNC(over, /atom/.proc/MouseDrop_T, src, usr, src_location, over_location, src_control, over_control, params)
// recieve a mousedrop
/atom/proc/MouseDrop_T(atom/dropping, mob/user)
return
/atom/proc/MouseDrop_T(atom/dropping, mob/user, src_location, over_location, src_control, over_control, params)
return