diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 05:58:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 07:42:30 +0100 |
commit | c69de61bf3873e5de4bb035ee965881a99789142 (patch) | |
tree | 80937253965344272c4b9f16448215d1ad433145 /src/critter.cpp | |
parent | 9f6d6555a2999256d5eceddca1d16329c401804c (diff) |
src/object: use forward declaration for dt
Diffstat (limited to 'src/critter.cpp')
-rw-r--r-- | src/critter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/critter.cpp b/src/critter.cpp index 0c1e672f..4d275149 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -4,7 +4,6 @@ #include "loader/loader.hpp" #include "src/world.hpp" #include "src/object.hpp" -#include "src/nanosecond.hpp" #include "shaders/shader.hpp" #include "compat/exception.hpp" #include <cmath> @@ -144,7 +143,7 @@ Vector2 critter::ordinal_offset(Vector2b offset) const return Vector2(offset); } -void critter::update(size_t i, Ns dt) +void critter::update(size_t i, const Ns& dt) { if (playable) { @@ -164,12 +163,12 @@ void critter::update(size_t i, Ns dt) update_nonplayable(i, dt); } -void critter::update_nonplayable(size_t i, Ns dt) +void critter::update_nonplayable(size_t i, const Ns& dt) { (void)i; (void)dt; (void)playable; } -void critter::update_movement(size_t i, Ns dt, rotation new_r) +void critter::update_movement(size_t i, const Ns& dt, rotation new_r) { fm_assert(new_r < rotation_COUNT); fm_assert(is_dynamic()); |