This commit is contained in:
33333-33333 2026-05-29 22:00:42 +09:00
commit 6cef9a3abe
11 changed files with 1184 additions and 235 deletions

View file

@ -218,7 +218,14 @@ export function getViewportMap(world, camera, viewWidth = MAP_W, viewHeight = MA
viewport[name] = copyViewportField(name, value, world, normalizedCamera, viewWidth, viewHeight);
}
if (options.light) return viewport;
if (options.light) {
// Light/fast redraws are used while panning and zooming. Do not leave
// source-space debug vectors on the viewport; in borders-debug this made
// natural compartment lines appear fixed on screen while the map moved.
viewport.adminDebug = null;
viewport.transportDebug = null;
return viewport;
}
const originX = world?.originX || 0;
const originY = world?.originY || 0;