diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 18:52:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 18:52:40 +0100 |
commit | 0de54e2ab155c0ff600030e9fbb5934e90fd3959 (patch) | |
tree | 52bbf27db4666a880cf51392221a0937531f863a | |
parent | 9bf2335589cd02eeb0661075af3ab3d4d2d25e96 (diff) |
b
-rw-r--r-- | src/critter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/critter.cpp b/src/critter.cpp index 82a518c6..9edc147a 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -99,6 +99,7 @@ constexpr std::array<rotation, 3> rotation_to_similar(rotation r) } template<rotation new_r, float vx, float vy> +CORRADE_ALWAYS_INLINE bool update_movement_body(size_t& i, critter& C, const anim_def& info) { constexpr auto vec = Vector2{vx, vy}; @@ -129,6 +130,7 @@ bool update_movement_body(size_t& i, critter& C, const anim_def& info) } template<rotation new_r> +CORRADE_NEVER_INLINE bool update_movement_1(critter& C, size_t& i, const anim_def& info, uint32_t nframes) { constexpr bool Diagonal = (int)new_r & 1; |