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.hpp | |
parent | 9f6d6555a2999256d5eceddca1d16329c401804c (diff) |
src/object: use forward declaration for dt
Diffstat (limited to 'src/critter.hpp')
-rw-r--r-- | src/critter.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/critter.hpp b/src/critter.hpp index d3f39e87..8855813a 100644 --- a/src/critter.hpp +++ b/src/critter.hpp @@ -29,9 +29,9 @@ struct critter final : object object_type type() const noexcept override; explicit operator critter_proto() const; - void update(size_t i, Ns dt) override; - void update_movement(size_t i, Ns dt, rotation r); - void update_nonplayable(size_t i, Ns dt); + void update(size_t i, const Ns& dt) override; + void update_movement(size_t i, const Ns& dt, rotation r); + void update_nonplayable(size_t i, const Ns& dt); void set_keys(bool L, bool R, bool U, bool D); void set_keys_auto(); Vector2 ordinal_offset(Vector2b offset) const override; |