From 5039f272c43d76db00a836387a329fdc298e2608 Mon Sep 17 00:00:00 2001 From: DeltaFire <46569814+DeltaFire15@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:31:13 +0200 Subject: [PATCH] Fixes broadside cannon direction recognition (#2695) --- nsv13/code/__HELPERS/misc.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nsv13/code/__HELPERS/misc.dm b/nsv13/code/__HELPERS/misc.dm index 652de5a93d2..f5c02e48521 100644 --- a/nsv13/code/__HELPERS/misc.dm +++ b/nsv13/code/__HELPERS/misc.dm @@ -14,7 +14,8 @@ ///Whether the angle is on the port or starboard side of the ship (facing north or south on the map) /proc/angle2dir_ship(angle) - if(0 < angle && angle < 180) + var/modulated_angle = (((angle % 360) + 360) % 360) + if(modulated_angle <= 180) return SOUTH else return NORTH