From 51686b0a014759990ed952599ca2ed04c17d6824 Mon Sep 17 00:00:00 2001 From: Markolie Date: Tue, 25 Oct 2016 01:01:42 +0200 Subject: [PATCH] face_atom runtime fix --- code/_onclick/click.dm | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index a3c466d9889..d9a75424179 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -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'