diff options
Diffstat (limited to 'src/object.hpp')
-rw-r--r-- | src/object.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/object.hpp b/src/object.hpp index 3976088e..97070e75 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -88,8 +88,9 @@ struct object void teleport_to(size_t& i, global_coords coord, Vector2b offset, rotation new_r); void teleport_to(size_t& i, point pt, rotation new_r); - static uint32_t allocate_frame_time(Ns dt, uint16_t& accum, uint32_t hz, float speed); - uint32_t allocate_frame_time(Ns dt, float speed); + template<typename T> + requires std::is_unsigned_v<T> + static uint32_t allocate_frame_time(Ns dt, T& accum, uint32_t hz, float speed); protected: object(object_id id, class chunk& c, const object_proto& proto); |