1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

fix incorrect bounds with selection

This commit is contained in:
EmeraldBlock 2021-06-04 12:52:13 -05:00
parent 84c2aee7da
commit 2ad07f9ace

View File

@ -67,7 +67,9 @@ export class HUDScreenshotExporter extends BaseHUDPart {
const tileStart = worldStart.toTileSpace();
const tileEnd = worldEnd.toTileSpace();
bounds = Rectangle.fromTwoPoints(tileStart, tileEnd.addScalars(1, 1));
bounds = Rectangle.fromTwoPoints(tileStart, tileEnd);
bounds.w += 1;
bounds.h += 1;
} else if (massSelector.selectedUids.size > 0) {
const minTile = new Vector(Infinity, Infinity);
const maxTile = new Vector(-Infinity, -Infinity);