summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/critter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/critter.cpp b/test/critter.cpp
index 630208a3..2aca3da3 100644
--- a/test/critter.cpp
+++ b/test/critter.cpp
@@ -131,6 +131,7 @@ bool run(StringView subtest_name, critter& npc, const function_view<Ns() const>&
print_pos("-", expected.pt, pos, time, dt);
Debug{} << "===>" << i << "iters" << colon(',') << time << Debug::newline;
}
+ if (i == 0) [[unlikely]] // todo! check for very small dt before dying
{ auto dbg = Error{standard_error(), Debug::Flag::NoSpace};
dbg << "!!! fatal: took zero iterations!";
dbg << " dt=" << dt << "accel=" << npc.speed;