diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 16:46:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 16:46:06 +0200 |
commit | 8ffe1eac74a76ab1de9bac6dfdd81104f19a0511 (patch) | |
tree | e322155e5638db120bc7f71664318fd2c786f1d3 /serialize | |
parent | 5fc2c1c191440e876a26696d8879110dacf63145 (diff) |
update() other layers' entities when only one is visible
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/world-writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp index 8127eacb..d0a960ef 100644 --- a/serialize/world-writer.cpp +++ b/serialize/world-writer.cpp @@ -408,7 +408,7 @@ void writer_state::serialize_chunk(const chunk& c, chunk_coords_ coord) auto s = binary_writer{chunk_buf.begin()}; s << chunk_magic << coord.x << coord.y; - fm_assert(coord.z >= chunk_min_z && coord.z <= chunk_max_z); + fm_assert(coord.z >= chunk_z_min && coord.z <= chunk_z_max); s << coord.z; for (auto i = 0uz; i < TILE_COUNT; i++) |