mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
RegionPart movement should not be affected by growth scale (#8578)
This commit is contained in:
parent
0919063ca3
commit
397fd087f2
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ public class RegionPart extends DrawPart{
|
|||
//can be null
|
||||
var region = drawRegion ? regions[Math.min(i, regions.length - 1)] : null;
|
||||
float sign = (i == 0 ? 1 : -1) * params.sideMultiplier;
|
||||
Tmp.v1.set((x + mx) * sign * Draw.xscl, (y + my) * Draw.yscl).rotateRadExact((params.rotation - 90) * Mathf.degRad);
|
||||
Tmp.v1.set((x + mx) * sign, y + my).rotateRadExact((params.rotation - 90) * Mathf.degRad);
|
||||
|
||||
float
|
||||
rx = params.x + Tmp.v1.x,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue