diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-02 14:30:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-02 14:30:45 +0100 |
commit | 8dbf450e34121358992e48212ae22cb7f5fc92f9 (patch) | |
tree | 4e5b59afd9453c072099031573e182ac3e89dd28 | |
parent | 6760379ef8048cd7b801b294a405fac5f7d5e44a (diff) |
serialize: include scenery in tile_size
-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 7e802d1d..7cd4b6d9 100644 --- a/serialize/world-writer.cpp +++ b/serialize/world-writer.cpp @@ -67,7 +67,7 @@ private: atlasid scenery_map_size = 0; }; -constexpr auto tile_size = sizeof(tilemeta) + (sizeof(atlasid) + sizeof(variant_t)) * 3; +constexpr auto tile_size = sizeof(tilemeta) + (sizeof(atlasid) + sizeof(variant_t)) * 3 + sizeof(scenery); constexpr auto chunkbuf_size = sizeof(chunk_magic) + sizeof(chunk_coords) + tile_size * TILE_COUNT; |