Bevy of newhydro fixes.

This commit is contained in:
Zuhayr
2014-07-29 00:20:38 +09:30
parent ad8ef7c4ab
commit f8e50b28f5
8 changed files with 98 additions and 54 deletions

View File

@@ -298,7 +298,17 @@
// 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)
if( stat || (buckled && !buckled.movable) || !A || !x || !y || !A.x || !A.y ) return
// Snowflake for space vines.
var/is_buckled = 0
if(buckled)
if(istype(buckled))
if(!buckled.movable)
is_buckled = 1
else
is_buckled = 0
if( stat || is_buckled || !A || !x || !y || !A.x || !A.y ) return
var/dx = A.x - x
var/dy = A.y - y
if(!dx && !dy) return