bevy/crates/bevy_core/src
devil ira 3f423074bf Make paused timers update just_finished on tick (#4445)
# Objective
Make timers update `just_finished` on tick, even if paused.
Fixes #4436

## Solution
`just_finished()` returns `times_finished > 0`. So I:
 * Renamed `times_finished` to `times_finished_this_tick` to reduce confusion.
 * Set `times_finished_this_tick` to `0` on tick when paused.
 * Additionally set `finished` to `false` if the timer is repeating.

Notably this change broke none of the existing tests, so I added a couple for this.

Files changed shows a lot of noise because of the rename. Check the first commit for the relevant changes.

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-04-26 18:42:42 +00:00
..
time Make paused timers update just_finished on tick (#4445) 2022-04-26 18:42:42 +00:00
float_ord.rs small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
lib.rs export TaskPoolThreadAssignmentPolicy (#4145) 2022-03-08 01:54:36 +00:00
name.rs impl more traits for bevy_core::Name (#3611) 2022-02-04 03:07:20 +00:00
task_pool_options.rs use std clamp instead of Bevy's (#1644) 2021-03-13 18:07:14 +00:00