summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/critter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/critter.cpp b/test/critter.cpp
index af8eb0b6..0e66f186 100644
--- a/test/critter.cpp
+++ b/test/critter.cpp
@@ -160,12 +160,12 @@ bool run(world& w, const function_view<Ns() const>& make_dt,
time += dt;
- if (same_pos) [[unlikely]]
+ if (same_pos)
{
frames_stopped++;
if (frames_stopped == 0)
saved_time = time;
- if (frames_stopped >= max_stop_frames) [[unlikely]]
+ else if (frames_stopped >= max_stop_frames) [[unlikely]]
{
if (!start.quiet) [[unlikely]]
{
@@ -209,7 +209,7 @@ bool run(world& w, const function_view<Ns() const>& make_dt,
else if (start.verbose) [[unlikely]]
Debug{} << "*" << "distance:" << dist_l2 << "pixels";
- if (expected.time != Ns{})
+ if (expected.time != Ns{}) [[likely]]
{
const auto time_diff = Ns{Math::abs((int64_t)expected.time.stamp - (int64_t)saved_time.stamp)};
if (time_diff > grace.time)