From 650d008fcc6fee16d6bb44564210e73e7ad5b236 Mon Sep 17 00:00:00 2001 From: Elixias <61173114+LixieWulf@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:44:32 -0700 Subject: [PATCH] BuildWeapon fixe (#10339) --- core/src/mindustry/type/weapons/BuildWeapon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/type/weapons/BuildWeapon.java b/core/src/mindustry/type/weapons/BuildWeapon.java index ab51b976f5..98d732ee8d 100644 --- a/core/src/mindustry/type/weapons/BuildWeapon.java +++ b/core/src/mindustry/type/weapons/BuildWeapon.java @@ -38,7 +38,7 @@ public class BuildWeapon extends Weapon{ mount.aimY = unit.buildPlan().drawy(); }else{ //aim for front - float weaponRotation = unit.rotation - 90; + float weaponRotation = unit.rotation - 90 + baseRotation; mount.aimX = unit.x + Angles.trnsx(unit.rotation - 90, x, y) + Angles.trnsx(weaponRotation, this.shootX, this.shootY); mount.aimY = unit.y + Angles.trnsy(unit.rotation - 90, x, y) + Angles.trnsy(weaponRotation, this.shootX, this.shootY); }