bevy/crates/bevy_time/src
Sludge 104c74c3bc Allow relative speed of -0.0 (#7740)
# Objective

-0.0 should typically be treated exactly the same as 0.0, but this assertion was rejecting it while allowing 0.0. The `Duration` API handles this correctly (on recent Rust versions) and returns a zero `Duration` for both -0.0 and 0.0.

## Solution

Check for `ratio >= 0.0`, which is true if `ratio` is `-0.0`.

---

## Changelog

Allow relative speed of -0.0 in the `Time::set_relative_speed_fXX` methods.
2023-02-18 22:43:08 +00:00
..
fixed_timestep.rs Rename schedule v3 to schedule (#7519) 2023-02-06 18:44:40 +00:00
lib.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
stopwatch.rs Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
time.rs Allow relative speed of -0.0 (#7740) 2023-02-18 22:43:08 +00:00
timer.rs Update old docs from Timer (#6646) 2022-11-18 20:42:33 +00:00