diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-05 06:30:59 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-05 06:30:59 +0100 |
| commit | 960e346159dbf152d9847f0998e1e717fb7dbfef (patch) | |
| tree | 6aab5985d1a2f20542e152d70c9be46bbed0025e /serialize/world-reader.cpp | |
| parent | 4ad635e8dfe21d2dd0e0582c44379dde26ca57a8 (diff) | |
src: add pass_mode field to tile_atlas
Diffstat (limited to 'serialize/world-reader.cpp')
| -rw-r--r-- | serialize/world-reader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/serialize/world-reader.cpp b/serialize/world-reader.cpp index b0e14254..98704599 100644 --- a/serialize/world-reader.cpp +++ b/serialize/world-reader.cpp @@ -45,7 +45,9 @@ void reader_state::read_atlases(reader_t& s) size[0] << s; size[1] << s; const auto& [buf, len] = s.read_asciiz_string<atlas_name_max>(); - atlases.push_back(loader.tile_atlas({buf, len}, size)); + auto atlas = loader.tile_atlas({buf, len}); + fm_soft_assert(size == atlas->num_tiles2()); + atlases.push_back(std::move(atlas)); } } |
