not baad
This commit is contained in:
parent
4a8aff90b2
commit
6cef9a3abe
11 changed files with 1184 additions and 235 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue