From 86ab92f5935e28bca5d053b4c2bd5d359b75b26e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Mar 2024 05:24:15 +0100 Subject: test/critter: no need to store it twice in a row --- test/critter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') 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& 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]] { -- cgit v1.2.3