mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Merge pull request #3174 from genNAowl/alternate-recalculation
Change "Alternate" calculation in Turret.java
This commit is contained in:
commit
c8e5994b2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue