From 19bc6f6e48cfc839020bef72337738110c377b40 Mon Sep 17 00:00:00 2001 From: Leonwang4234 <62972692+Leonwang4234@users.noreply.github.com> Date: Wed, 28 Oct 2020 20:09:45 -0700 Subject: [PATCH] Update Turret.java --- core/src/mindustry/world/blocks/defense/turrets/Turret.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/defense/turrets/Turret.java b/core/src/mindustry/world/blocks/defense/turrets/Turret.java index 58abb26b12..6d3d12f0a5 100644 --- a/core/src/mindustry/world/blocks/defense/turrets/Turret.java +++ b/core/src/mindustry/world/blocks/defense/turrets/Turret.java @@ -364,7 +364,7 @@ public abstract class Turret extends ReloadTurret{ //otherwise, use the normal shot pattern(s) if(alternate){ - float i = (shotCounter % shots) - shots/2f + (((shots+1)%2) / 2f); + float i = (shotCounter % shots) - (shots-1)/2f; tr.trns(rotation - 90, spread * i + Mathf.range(xRand), size * tilesize / 2f); bullet(type, rotation + Mathf.range(inaccuracy));