diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-05 21:04:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-05 21:56:56 +0100 |
commit | 71d8fa55ab671ae152c420738b2d9d49f8f1106d (patch) | |
tree | a4ad0eb37840245622b99ee49c1d555ccb238b02 /test | |
parent | a56a8cc899dc90701f1690051da4e4318e95566c (diff) |
clean up timer & nanosecond includes
Diffstat (limited to 'test')
-rw-r--r-- | test/critter.cpp | 3 | ||||
-rw-r--r-- | test/serializer.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/critter.cpp b/test/critter.cpp index 939ae811..e75be7d9 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -5,13 +5,12 @@ #include "src/critter.hpp" #include "src/world.hpp" #include "src/wall-atlas.hpp" -#include "src/timer.hpp" +#include "src/nanosecond.inl" #include "src/log.hpp" #include "src/point.inl" #include "loader/loader.hpp" #include <cinttypes> #include <cstdio> -// todo! find all places where singed division is used namespace floormat { diff --git a/test/serializer.cpp b/test/serializer.cpp index e85f7892..5179342c 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -7,7 +7,7 @@ #include "src/ground-atlas.hpp" #include "src/anim-atlas.hpp" #include "src/tile-iterator.hpp" -#include "src/timer.hpp" +#include "src/nanosecond.inl" #include <Corrade/Utility/Path.h> namespace floormat { @@ -53,7 +53,7 @@ chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) auto& e = *w.make_object<scenery>(w.make_id(), {ch, {K+3, K+1}}, door); const auto index = e.index(); const auto end = e.atlas->info().nframes-1; - constexpr Ns dt = Second / 60; + constexpr auto dt = Second / 60; fm_assert(e.frame == end); { auto& x = std::get<door_scenery>(e.subtype); fm_assert(!x.active); |