From 2e0c0009806860e4e8ac24663afdc5d926d1213f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 14:52:54 +0100 Subject: src: add O(1) chunk access from entity --- src/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/character.cpp') diff --git a/src/character.cpp b/src/character.cpp index a0bfbbd6..7293fddc 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -51,7 +51,7 @@ constexpr auto arrows_to_dir(bool L, bool R, bool U, bool D) } // namespace -character::character(std::uint64_t id, struct world& w, entity_type type) : entity{id, w, type} +character::character(std::uint64_t id, struct chunk& c, entity_type type) : entity{id, c, type} { atlas = loader.anim_atlas("npc-walk", loader.ANIM_PATH); bbox_size = {12, 12}; -- cgit v1.2.3