aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/projectile.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 21:27:58 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 21:27:58 +0300
commit882105f571231acd562aa403fc4767585f70ac54 (patch)
treee719e18d8b3f89c0362a906e6f365de168953c85 /crates/fparkan-runtime/src/projectile.rs
parentfd159dbfa3e0ae399658a2cbea305d0a35debf77 (diff)
downloadfparkan-882105f571231acd562aa403fc4767585f70ac54.tar.xz
fparkan-882105f571231acd562aa403fc4767585f70ac54.zip
test(ui): verify targeter sphere stays stable across damage stages
Diffstat (limited to 'crates/fparkan-runtime/src/projectile.rs')
-rw-r--r--crates/fparkan-runtime/src/projectile.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/projectile.rs b/crates/fparkan-runtime/src/projectile.rs
index 66cdbc8b..dd3a857d 100644
--- a/crates/fparkan-runtime/src/projectile.rs
+++ b/crates/fparkan-runtime/src/projectile.rs
@@ -738,6 +738,7 @@ mod tests {
)
.unwrap();
let plant = handle_by_original_id(&engine.world, OriginalObjectId(5)).unwrap();
+ let intact_bounds = crate::cockpit_instruments::instrument_bounds(&engine, 5).unwrap();
let table = engine
.loaded
.as_mut()
@@ -795,6 +796,10 @@ mod tests {
.any(|state| state == ((0, 1), Some(1)))
);
assert_eq!(
+ crate::cockpit_instruments::instrument_bounds(&engine, 5),
+ Some(intact_bounds)
+ );
+ assert_eq!(
crate::control_node_provider_row(table, 3)
.unwrap()
.mesh_state