summaryrefslogtreecommitdiffhomepage
path: root/serialize/world-reader.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-29 01:28:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-29 01:28:12 +0200
commitb0069421278d6fc3fac0153e2f19c549c7bfce32 (patch)
tree2104e6dbf45bcd9fbedf1dd144cfdec4f0dbfc1e /serialize/world-reader.cpp
parentb6a42cc53f808c86342d1bcd400ea95e6e7f5762 (diff)
a
Diffstat (limited to 'serialize/world-reader.cpp')
-rw-r--r--serialize/world-reader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/serialize/world-reader.cpp b/serialize/world-reader.cpp
index 4c67031e..b999b5d4 100644
--- a/serialize/world-reader.cpp
+++ b/serialize/world-reader.cpp
@@ -35,8 +35,8 @@ void reader_state::read_atlases(reader_t& s)
Vector2ub size;
s >> size[0];
s >> size[1];
- auto str = s.read_asciiz_string<atlas_name_max>();
- atlases[i] = loader.tile_atlas({str.buf, str.len}, size);
+ const auto& [buf, len] = s.read_asciiz_string<atlas_name_max>();
+ atlases[i] = loader.tile_atlas({buf, len}, size);
}
}
@@ -73,7 +73,7 @@ void reader_state::read_chunks(reader_t& s)
};
tile& t = chunk[i];
if (flags & meta_ground)
- t.ground_image = make_atlas();
+ t.ground = make_atlas();
if (flags & meta_wall_n)
t.wall_north = make_atlas();
if (flags & meta_wall_w)