From 0223fe52b79ca4320121eeb02d5d4d904f6b48fd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 24 Mar 2024 23:39:39 +0100 Subject: add todo --- src/critter.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/critter.cpp b/src/critter.cpp index c00bf8b4..e9a4794a 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -175,6 +175,10 @@ bool update_movement_1(critter& C, size_t& i, const anim_def& info, uint32_t nfr //Debug{} << "< nframes" << nframes; while (nframes > 1) { + // todo what is the correct formula? + // 1. C.bbox_size.min() + // 2. C.bbox_size.min()/2 + // 3. (C.bbox_size.min()+1)/2 auto len = (uint8_t)Math::min(nframes, (uint32_t)C.bbox_size.min()); if (len <= 1) break; -- cgit v1.2.3