bevy/crates/bevy_time
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
..
src Allow relative speed of -0.0 (#7740) 2023-02-18 22:43:08 +00:00
Cargo.toml Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00