diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 15:32:40 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 15:32:40 +0300 |
| commit | ce3348883350d21821aed720a098b8515077564d (patch) | |
| tree | 939492e2d1cc88db9130fe1c187d59fc405dd60f /apps | |
| parent | acd4c5b109bfa0c089e109160b33104f8596b0c2 (diff) | |
| download | fparkan-ce3348883350d21821aed720a098b8515077564d.tar.xz fparkan-ce3348883350d21821aed720a098b8515077564d.zip | |
fix(render): reveal buildings when scripted construction ends
Publish completed constructions with the same fresh world snapshot that the render tick consumes. Activate their prepared render roots and collision bindings through the existing spawn path. An unmodified Third Part start shows the actual factory appearing on the site between two Vulkan frames. Terrain rebuilding for a new basement remains open.
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/fparkan-game/src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 8c2e12f9..4a76f016 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -11201,6 +11201,12 @@ impl StaticVulkanApp { .iter() .map(|unit| (unit, "factory_robot_completed")), ) + .chain( + frame + .constructed_buildings + .iter() + .map(|building| (building, "building_constructed")), + ) .chain(deployed_mine.iter().map(|unit| (unit, "mine_deployed"))) { let index = reinforcement.object_index; |
