diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-03 13:06:53 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-04 06:58:13 +0100 |
| commit | 23a7a6defc0f30f8d053ae4ec65ed8046ce9f4e5 (patch) | |
| tree | 80953de856eced8b2adbb35c9b77e3aa22b688b9 /src/object.cpp | |
| parent | 12dddee0662ff9eb3ecaf655db8da22e33e9eb4f (diff) | |
test/critter,src/timer: wip!
Diffstat (limited to 'src/object.cpp')
| -rw-r--r-- | src/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp index db3c5b67..e881e5d0 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -289,7 +289,7 @@ bool object::move_to(Magnum::Vector2i delta) uint32_t object::allocate_frame_time(Ns dt, uint16_t& accum, uint32_t hz, float speed) { - constexpr auto ns_in_sec = Ns(1e9); + constexpr auto ns_in_sec = Ns((int)1e9); constexpr auto u16_max = uint64_t{65535}; fm_assert(hz > 0); |
