Apply coast drag after interceptor burnout

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
2026-11-03 00:02:29 +03:00
parent ce76f20074
commit a7b8cb980a
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -2990,7 +2990,7 @@ impl Sim {
if m.age == spec.cold + m.kind.burn_ticks() + 1 {
burnouts.push((m.pos, m.id, m.kind));
}
let speed = if !lit {
let speed = if m.age <= spec.cold {
(m.vel.length() * 0.97).max(0.4)
} else if lit {
(m.vel.length() + spec.accel).min(spec.speed)