diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/character.cpp | 1 | ||||
-rw-r--r-- | src/chunk.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
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} |