From ba9e39d7a4f93270a9d61f33cbb6f0fcdb383710 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 28 Jul 2023 09:07:50 -0400 Subject: [PATCH] Fixed #8856 --- core/src/mindustry/type/Weapon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/Weapon.java b/core/src/mindustry/type/Weapon.java index 1322ccc4d5..3841ad2cc9 100644 --- a/core/src/mindustry/type/Weapon.java +++ b/core/src/mindustry/type/Weapon.java @@ -189,7 +189,7 @@ public class Weapon implements Cloneable{ float rotation = unit.rotation - 90, realRecoil = Mathf.pow(mount.recoil, recoilPow) * recoil, - weaponRotation = rotation + (rotate ? mount.rotation : 0), + weaponRotation = rotation + (rotate ? mount.rotation : baseRotation), wx = unit.x + Angles.trnsx(rotation, x, y) + Angles.trnsx(weaponRotation, 0, -realRecoil), wy = unit.y + Angles.trnsy(rotation, x, y) + Angles.trnsy(weaponRotation, 0, -realRecoil);