aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/weapon_deployment.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-01 09:56:17 +0300
committerValentin Popov <valentin@popov.link>2026-12-01 09:56:17 +0300
commitb21189c3089acc1cf24e530db40707aae292813d (patch)
treed53629295bb034fddf36f4b1a5e57ec2aa0eb4d1 /crates/fparkan-runtime/src/weapon_deployment.rs
parent350df52410d4ae731834c56a9f8eb628e24592fd (diff)
downloadfparkan-b21189c3089acc1cf24e530db40707aae292813d.tar.xz
fparkan-b21189c3089acc1cf24e530db40707aae292813d.zip
fix(gameplay): keep selected suit weapons deployed
Diffstat (limited to 'crates/fparkan-runtime/src/weapon_deployment.rs')
-rw-r--r--crates/fparkan-runtime/src/weapon_deployment.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/fparkan-runtime/src/weapon_deployment.rs b/crates/fparkan-runtime/src/weapon_deployment.rs
index 0dec287b..4be6f6e8 100644
--- a/crates/fparkan-runtime/src/weapon_deployment.rs
+++ b/crates/fparkan-runtime/src/weapon_deployment.rs
@@ -88,10 +88,8 @@ impl WeaponDeployment {
(track.position_ms - step).max(0.0)
};
}
- // shortcut: use the manual trigger to deploy. Native CTL 24 activation
- // rules beyond the authored tracks and clock still need a live comparison.
self.pending_shot = selected && (self.pending_shot || trigger);
- self.extending = self.pending_shot || cycling;
+ self.extending = selected || cycling;
let start = self.pending_shot
&& self
.tracks