From 9a231ffd8bd35108092d218c834544657bfb5986 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jan 2024 12:01:33 +0100 Subject: c --- editor/update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index 5d4c75cb..be686567 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -10,6 +10,7 @@ #include "src/tile-iterator.hpp" #include "keys.hpp" #include "loader/loader.hpp" +#include "compat/enum-bitset.hpp" #include namespace floormat { @@ -211,6 +212,7 @@ void app::update_world(float dt) void app::update_character([[maybe_unused]] float dt) { + auto& keys = *keys_; if (_character_id) { auto& w = M->world(); @@ -242,10 +244,10 @@ void app::update(float dt) { update_cursor_tile(cursor.pixel); tests_pre_update(); - apply_commands(keys); + apply_commands(*keys_); update_character(dt); update_world(dt); - do_camera(dt, keys, get_key_modifiers()); + do_camera(dt, *keys_, get_key_modifiers()); clear_non_repeated_keys(); set_cursor(); tests_post_update(); -- cgit v1.2.3