diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 15:31:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 23:23:12 +0100 |
commit | 72782ef1298deabbae0598d0d50159210ed64b27 (patch) | |
tree | 6107108a7733b9beda77a36dea0209fe1367d8b9 /src/character.cpp | |
parent | 90742e5c5abd4fb996f548e0cff6661a950057c1 (diff) |
buffer flush (wip)
Diffstat (limited to 'src/character.cpp')
-rw-r--r-- | src/character.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/character.cpp b/src/character.cpp index e0645ddb..c16fce35 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -51,7 +51,9 @@ constexpr auto arrows_to_dir(bool L, bool R, bool U, bool D) } // namespace -character::character(std::uint64_t id, struct chunk& c, entity_type type, bool playable) : entity{id, c, type}, playable{playable} +character::character(std::uint64_t id, struct chunk& c, entity_type type, const character_proto& proto) : + entity{id, c, type}, + playable{proto.playable} { atlas = loader.anim_atlas("npc-walk", loader.ANIM_PATH); bbox_size = Vector2ub(iTILE_SIZE2/2); |