mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
104c74c3bc
# 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |