From cfd00d48c997bda656bb56de2ead2f852d8ba9e6 Mon Sep 17 00:00:00 2001 From: Doubleumc Date: Wed, 20 Dec 2023 16:40:23 -0500 Subject: [PATCH] Get_Compass_Dir get_turfs discard pixel offsets so projectile knockback behaves responsibly --- code/__HELPERS/unsorted.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 194db09bede8..7425046da7c7 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -143,7 +143,7 @@ return NORTH /proc/Get_Compass_Dir(atom/start, atom/end)//get_dir() only considers an object to be north/south/east/west if there is zero deviation. This uses rounding instead. - return angle_to_dir(Get_Angle(start, end)) + return angle_to_dir(Get_Angle(get_turf(start), get_turf(end))) // Among other things, used by flamethrower and boiler spray to calculate if flame/spray can pass through. // Returns an atom for specific effects (primarily flames and acid spray) that damage things upon contact