diff --git a/code/__DEFINES/is_helpers.dm b/code/__DEFINES/is_helpers.dm index c59bbb25a7d..addeca87398 100644 --- a/code/__DEFINES/is_helpers.dm +++ b/code/__DEFINES/is_helpers.dm @@ -5,7 +5,7 @@ #define islist(L) (istype(L, /list)) #if DM_VERSION >= 512 -#define in_range(source, user) (get_dist(source, user) <= 1 && (get_turf(source)?:z) == (get_turf(source)?:z)) +#define in_range(source, user) (get_dist(source, user) <= 1 && (get_step(source, 0)?:z) == (get_step(user, 0)?:z)) #if DM_VERSION > 512 #warn Remove this check. #endif @@ -197,4 +197,4 @@ GLOBAL_LIST_INIT(glass_sheet_types, typecacheof(list( #define is_glass_sheet(O) (is_type_in_typecache(O, GLOB.glass_sheet_types)) -#define isblobmonster(O) (istype(O, /mob/living/simple_animal/hostile/blob)) +#define isblobmonster(O) (istype(O, /mob/living/simple_animal/hostile/blob)) \ No newline at end of file