diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 05:24:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 05:24:15 +0100 |
commit | 86ab92f5935e28bca5d053b4c2bd5d359b75b26e (patch) | |
tree | b27939bfcdd86a25765afa72a0de7442ceb709e6 | |
parent | da79f0cd1bdfac3f1c2d03a18f0728f4ce22bc63 (diff) |
test/critter: no need to store it twice in a row
-rw-r--r-- | test/critter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/critter.cpp b/test/critter.cpp index 0e66f186..64388140 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -163,9 +163,7 @@ bool run(world& w, const function_view<Ns() const>& make_dt, if (same_pos) { frames_stopped++; - if (frames_stopped == 0) - saved_time = time; - else if (frames_stopped >= max_stop_frames) [[unlikely]] + if (frames_stopped >= max_stop_frames) [[unlikely]] { if (!start.quiet) [[unlikely]] { |