diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 19:23:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 23:23:12 +0100 |
commit | 1d4b76f4429334b8d1a18cb50a9ceea04c10443e (patch) | |
tree | 1c37a8034b7eb541c66cb9c4f7f56449db1984a5 /src | |
parent | 8c9175cc8e09fc1a714cab93860e9c533667f6c4 (diff) |
a
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} |