diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 19:37:26 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 19:37:26 +0100 |
commit | d79f93b7fcb2b4d7ab782987b2dbb53cb2d4cac8 (patch) | |
tree | fc3656177b96d5d2cfe66a3b9d0c8182ddb4e6bb /src/critter.cpp | |
parent | 8593ce7636987146c1aab2581b65613fc9000ee4 (diff) |
src/critter: actually can move in larger diagonal steps
Diffstat (limited to 'src/critter.cpp')
-rw-r--r-- | src/critter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/critter.cpp b/src/critter.cpp index 1ebe3014..c00bf8b4 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -175,7 +175,7 @@ bool update_movement_1(critter& C, size_t& i, const anim_def& info, uint32_t nfr //Debug{} << "< nframes" << nframes; while (nframes > 1) { - auto len = (uint8_t)Math::min(nframes, (uint32_t)C.bbox_size.min() / 2u); + auto len = (uint8_t)Math::min(nframes, (uint32_t)C.bbox_size.min()); if (len <= 1) break; if (!update_movement_body<new_r, true>(i, C, info, len)) |