mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Turret construct preview fix
This commit is contained in:
parent
d6e408267e
commit
bfd742e89b
2 changed files with 3 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ public class ConstructBlock extends Block{
|
|||
Shaders.blockbuild.time = Time.time;
|
||||
Shaders.blockbuild.progress = progress;
|
||||
|
||||
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() : 0);
|
||||
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() + current.visualRotationOffset : 0);
|
||||
Draw.flush();
|
||||
i ++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,6 +162,8 @@ public class Turret extends ReloadTurret{
|
|||
drawArrow = false;
|
||||
rotateDrawEditor = false;
|
||||
visualRotationOffset = -90f;
|
||||
regionRotated1 = 1;
|
||||
regionRotated2 = 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue