Skip to content

Commit

Permalink
Bruteforce quick mode
Browse files Browse the repository at this point in the history
  • Loading branch information
crocket63 authored and frankkopp committed Apr 13, 2024
1 parent f2b6419 commit fb5e718
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,27 @@ impl UpdateContext {
}

pub fn delta(&self) -> Duration {
self.delta.into()
if !self.aircraft_preset_quick_mode {
self.delta.into()
} else {
Duration::from_secs(1).into()
}
}

pub fn delta_as_secs_f64(&self) -> f64 {
self.delta.into()
if !self.aircraft_preset_quick_mode {
self.delta.into()
} else {
1.
}
}

pub fn delta_as_time(&self) -> Time {
self.delta.into()
if !self.aircraft_preset_quick_mode {
self.delta.into()
} else {
Time::new::<second>(1.)
}
}

pub fn simulation_time(&self) -> f64 {
Expand Down

0 comments on commit fb5e718

Please sign in to comment.