summaryrefslogtreecommitdiffhomepage
path: root/src/character.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-15 14:52:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-15 15:09:09 +0100
commit2e0c0009806860e4e8ac24663afdc5d926d1213f (patch)
tree24a88dfa818e52179b0955a463da4b9cfa834b4d /src/character.cpp
parentc6c3c887e99c57fb567252053190ce4a24f65455 (diff)
src: add O(1) chunk access from entity
Diffstat (limited to 'src/character.cpp')
-rw-r--r--src/character.cpp2
1 files changed, 1 insertions, 1 deletions
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};