From e237edf2c3219d82fa644a603904eb8d5d9fb17b Mon Sep 17 00:00:00 2001 From: vincibrv Date: Tue, 26 Dec 2023 15:40:42 +0100 Subject: [PATCH] not the cleanest but works --- code/modules/cm_marines/smartgun_mount.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/cm_marines/smartgun_mount.dm b/code/modules/cm_marines/smartgun_mount.dm index d4e84195b0ed..6ba41536e54f 100644 --- a/code/modules/cm_marines/smartgun_mount.dm +++ b/code/modules/cm_marines/smartgun_mount.dm @@ -703,6 +703,9 @@ if((dir == NORTH) && (angle > 180) && (abs(360 - angle) > shoot_degree)) // If north and shooting to the left, we do some extra math return + if((dir == NORTH) && (angle < 180) && (angle > shoot_degree)) + return + else if((dir != NORTH) && (abs(angle - dir2angle(dir)) > shoot_degree)) return