patch-caps-lunarlander

This commit is contained in:
Kelly committed 2026-08-25 19:40:04 -07:00
1 parent 411661ae67
commit 9104a5d67c
2 files changed
+10 -2

No files matched your search

+4
View File
@@ -372,6 +372,10 @@ def process_final_tick(
delta_t = capsule.altitude / average_vel
new_state = capsule.predict_motion(delta_t)
capsule.update_state(sim_clock, delta_t, new_state)
# Prevent infinite loop - if we're still above surface, landing result
if new_state.altitude <= 0:
return show_landing(sim_clock, capsule)
def handle_flyaway(sim_clock: SimulationClock, capsule: Capsule) -> bool: