fix: villagers coming out of doors and porters show again: the scene dropped them on the way out

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-29 16:42:50 +01:00
parent 21de40930a
commit fa9a7f7f54
1 changed files with 2 additions and 1 deletions

View File

@ -826,12 +826,13 @@ export function buildScene(village: VillageState, frame: number | { width: numbe
// One at a time, so the layers keep the order they were added in.
decals: [...decalFaces, ...shadows].flatMap((face) => toPolys([face])),
// Wall segments keep their own outlines; the band below covers the stretches between.
objects: objects.map(({ key, polys, building, planned, life }) => ({
objects: objects.map(({ key, polys, building, planned, life, walker }) => ({
key,
polys,
building: building ? { ...building, hit: hitOutline(polys, building.ring) } : undefined,
planned,
life,
walker,
})),
// Centred halfway up the palisade, so the band covers the wall itself, not only its foot.
wallBand: wall ? { id: wall.id, ring: { ...screenRing(0, 0, Rv), cy: -wallTop / 2 }, width: U * 1.6 + wallTop } : null,