mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
Build fix
This commit is contained in:
@ -232,7 +232,7 @@ public class World extends Module{
|
||||
|
||||
beginMapLoad();
|
||||
|
||||
int width = sectorSize * sector.size, height = sectorSize * sector.size;
|
||||
int width = sectorSize * sector.width, height = sectorSize * sector.height;
|
||||
|
||||
Tile[][] tiles = createTiles(width, height);
|
||||
|
||||
|
@ -70,7 +70,7 @@ public class FortressGenerator{
|
||||
gen.setBlock(enemyX, enemyY, StorageBlocks.core, team);
|
||||
|
||||
float difficultyScl = Mathf.clamp(gen.sector.difficulty / 20f + gen.random.range(1f/2f), 0f, 0.9999f);
|
||||
int coreDst = FortressGenerator.coreDst*gen.sector.size;
|
||||
int coreDst = FortressGenerator.coreDst*gen.sector.width;
|
||||
|
||||
Array<Block> turrets = find(b -> b instanceof ItemTurret);
|
||||
Array<Block> powerTurrets = find(b -> b instanceof PowerTurret);
|
||||
|
@ -130,7 +130,7 @@ public class SectorsDialog extends FloatingDialog{
|
||||
float drawY = y + height/2f + sectorY * padSectorSize - offsetY * padSectorSize - panY % padSectorSize;
|
||||
|
||||
Sector sector = world.sectors().get(sectorX, sectorY);
|
||||
int size = (sector == null ? 1 : sector.size);
|
||||
int size = (sector == null ? 1 : sector.width);
|
||||
float padding = (size-1) * sectorPadding;
|
||||
|
||||
if(sector != null && (sector.x != sectorX || sector.y != sectorY)){
|
||||
|
Reference in New Issue
Block a user