Turret construct preview fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user