Skip to content

Commit bfd742e

Browse files
committed
Turret construct preview fix
1 parent d6e4082 commit bfd742e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/mindustry/world/blocks/ConstructBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public void draw(){
248248
Shaders.blockbuild.time = Time.time;
249249
Shaders.blockbuild.progress = progress;
250250

251-
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() : 0);
251+
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() + current.visualRotationOffset : 0);
252252
Draw.flush();
253253
i ++;
254254
}

core/src/mindustry/world/blocks/defense/turrets/Turret.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ public Turret(String name){
162162
drawArrow = false;
163163
rotateDrawEditor = false;
164164
visualRotationOffset = -90f;
165+
regionRotated1 = 1;
166+
regionRotated2 = 2;
165167
}
166168

167169
@Override

0 commit comments

Comments
 (0)