fix altitude/pressure gauges not resetting when exiting atmosphere

This commit is contained in:
yuni 2024-11-27 22:37:58 +01:00
parent aa98d8cebc
commit c206fa2684

View file

@ -1135,7 +1135,7 @@ fn handle_atmosphere(
>, >,
) { ) {
let dt = time.delta_seconds() as f64; let dt = time.delta_seconds() as f64;
let mut reset_player_gauges = false; let mut reset_player_gauges = true;
for (pos, mut v, player) in &mut q_actor { for (pos, mut v, player) in &mut q_actor {
for (atmo_pos, atmo_v, atmo) in &q_atmosphere { for (atmo_pos, atmo_v, atmo) in &q_atmosphere {