diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 12:39:26 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 12:39:26 +0300 |
| commit | 2bf70f8b1eca48ba40215a4e58aaf6b133d84b18 (patch) | |
| tree | 61deae894a5e3c7aa78f65f3abc25a4a34091ac2 /apps/fparkan-game | |
| parent | 54b6e83f62fe52b221dcb7eebff245e9d5b39305 (diff) | |
| download | fparkan-2bf70f8b1eca48ba40215a4e58aaf6b133d84b18.tar.xz fparkan-2bf70f8b1eca48ba40215a4e58aaf6b133d84b18.zip | |
fix(player): capture buildings at the communicator floor
On the stock Constructor map, walk through the factory basement to the communicator and press Enter. The first objective completes and the same path returns to ground level. The green ceiling no longer hides the floor in the contact query.
Diffstat (limited to 'apps/fparkan-game')
| -rw-r--r-- | apps/fparkan-game/src/player_collision.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/player_collision.rs b/apps/fparkan-game/src/player_collision.rs index c74a8ec8..c34422da 100644 --- a/apps/fparkan-game/src/player_collision.rs +++ b/apps/fparkan-game/src/player_collision.rs @@ -249,6 +249,10 @@ mod tests { let z = f32::from_bits(hero.position[2]); assert!(z < factory.position[2] - 4.0, "factory cabin at {z}"); assert_eq!(app.terrain.height_at([x, y]).unwrap(), None); + assert_eq!( + fparkan_runtime::capture_building(&mut engine, cockpit).unwrap(), + Some(fparkan_world::OriginalObjectId(0)) + ); } } let [x, y, z] = hero.position.map(f32::from_bits); |
