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:
parent
21de40930a
commit
fa9a7f7f54
|
|
@ -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.
|
// One at a time, so the layers keep the order they were added in.
|
||||||
decals: [...decalFaces, ...shadows].flatMap((face) => toPolys([face])),
|
decals: [...decalFaces, ...shadows].flatMap((face) => toPolys([face])),
|
||||||
// Wall segments keep their own outlines; the band below covers the stretches between.
|
// 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,
|
key,
|
||||||
polys,
|
polys,
|
||||||
building: building ? { ...building, hit: hitOutline(polys, building.ring) } : undefined,
|
building: building ? { ...building, hit: hitOutline(polys, building.ring) } : undefined,
|
||||||
planned,
|
planned,
|
||||||
life,
|
life,
|
||||||
|
walker,
|
||||||
})),
|
})),
|
||||||
// Centred halfway up the palisade, so the band covers the wall itself, not only its foot.
|
// 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,
|
wallBand: wall ? { id: wall.id, ring: { ...screenRing(0, 0, Rv), cy: -wallTop / 2 }, width: U * 1.6 + wallTop } : null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue