face_atom runtime fix

This commit is contained in:
Markolie
2016-10-25 01:01:42 +02:00
parent 5ace926e42
commit 51686b0a01
+2 -16
View File
@@ -323,17 +323,7 @@
// Simple helper to face what you clicked on, in case it should be needed in more than one place
/mob/proc/face_atom(var/atom/A)
/* // Snowflake for space vines. //Are you fucking kidding me?
var/is_buckled = 0
if(buckled)
if(istype(buckled))
if(!buckled.movable)
is_buckled = 1
else
is_buckled = 0*/
if( !istype(A) || stat || buckled || !A || !x || !y || !A.x || !A.y ) return
if( stat || buckled || !A || !x || !y || !A.x || !A.y ) return
var/dx = A.x - x
var/dy = A.y - y
if(!dx && !dy) return
@@ -345,11 +335,7 @@
else
if(dx > 0) direction = EAST
else direction = WEST
usr.dir = direction
/* if(buckled && buckled.movable)
buckled.dir = direction
buckled.handle_rotation()*/
dir = direction
/obj/screen/click_catcher
icon = 'icons/mob/screen_full.dmi'