From 1d4b76f4429334b8d1a18cb50a9ceea04c10443e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 17 Mar 2023 19:23:14 +0100 Subject: a --- src/character.cpp | 1 + src/chunk.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/character.cpp b/src/character.cpp index c16fce35..ed9ce4fa 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -53,6 +53,7 @@ constexpr auto arrows_to_dir(bool L, bool R, bool U, bool D) character::character(std::uint64_t id, struct chunk& c, entity_type type, const character_proto& proto) : entity{id, c, type}, + name{proto.name}, playable{proto.playable} { atlas = loader.anim_atlas("npc-walk", loader.ANIM_PATH); diff --git a/src/chunk.cpp b/src/chunk.cpp index 351848d0..a99facf6 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -86,7 +86,8 @@ void chunk::mark_modified() noexcept { mark_ground_modified(); mark_walls_modified(); - mark_scenery_modified(); + mark_scenery_modified(false); + mark_passability_modified(); } chunk::chunk(struct world& w) noexcept : _world{&w} -- cgit v1.2.3