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 /editor | |
parent | a56a8cc899dc90701f1690051da4e4318e95566c (diff) |
clean up timer & nanosecond includes
Diffstat (limited to 'editor')
-rw-r--r-- | editor/app.cpp | 1 | ||||
-rw-r--r-- | editor/app.hpp | 2 | ||||
-rw-r--r-- | editor/camera.cpp | 2 | ||||
-rw-r--r-- | editor/draw.cpp | 1 | ||||
-rw-r--r-- | editor/update.cpp | 1 |
5 files changed, 3 insertions, 4 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index dafea3d9..35aa1230 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -5,7 +5,6 @@ #include "editor.hpp" #include "src/anim-atlas.hpp" #include "src/critter.hpp" -#include "src/timer.hpp" #include "src/world.hpp" #include "floormat/main.hpp" #include "floormat/settings.hpp" diff --git a/editor/app.hpp b/editor/app.hpp index 4cc24259..a60d12bf 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -165,7 +165,7 @@ private: void clear_non_global_keys(); void clear_non_repeated_keys(); - void do_camera(Ns dt, const key_set& cmds, int mods); + void do_camera(const Ns& dt, const key_set& cmds, int mods); void reset_camera_offset(); [[nodiscard]] bool tests_handle_key(const key_event& e, bool is_down); diff --git a/editor/camera.cpp b/editor/camera.cpp index e71be739..ce94d5e1 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -14,7 +14,7 @@ namespace floormat { -void app::do_camera(Ns dt, const key_set& cmds, int mods) +void app::do_camera(const Ns& dt, const key_set& cmds, int mods) { if (cmds[key_camera_reset]) { diff --git a/editor/draw.cpp b/editor/draw.cpp index bd30d80b..40ba0235 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -15,7 +15,6 @@ #include "src/camera-offset.hpp" #include "src/world.hpp" #include "src/critter.hpp" -#include "src/rotation.inl" #include "src/RTree-search.hpp" #include <bit> #include <Magnum/Math/Color.h> diff --git a/editor/update.cpp b/editor/update.cpp index beb7c048..45772be2 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -12,6 +12,7 @@ #include "floormat/main.hpp" #include "src/critter.hpp" #include "src/tile-iterator.hpp" +#include "src/nanosecond.hpp" #include "src/timer.hpp" #include "keys.hpp" #include "loader/loader.hpp" |