summaryrefslogtreecommitdiffhomepage
path: root/test/serializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/serializer.cpp')
-rw-r--r--test/serializer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/serializer.cpp b/test/serializer.cpp
index db08a9f8..c1ab5fef 100644
--- a/test/serializer.cpp
+++ b/test/serializer.cpp
@@ -15,14 +15,14 @@ static chunk make_test_chunk()
tiles = loader.tile_atlas("tiles", {8, 5});
constexpr auto N = TILE_MAX_DIM;
chunk c;
- for (auto& [x, k, pt] : c) {
- x.ground = { tiles, decltype(tile_image::variant)(k % tiles->num_tiles()) };
+ for (auto [x, k, pt] : c) {
+ x.ground() = { tiles, variant_t(k % tiles->num_tiles()) };
}
constexpr auto K = N/2;
- c[{K, K }].wall_north = { metal1, 0 };
- c[{K, K }].wall_west = { metal2, 0 };
- c[{K, K+1}].wall_north = { metal1, 0 };
- c[{K+1, K }].wall_west = { metal2, 0 };
+ c[{K, K }].wall_north() = { metal1, 0 };
+ c[{K, K }].wall_west() = { metal2, 0 };
+ c[{K, K+1}].wall_north() = { metal1, 0 };
+ c[{K+1, K }].wall_west() = { metal2, 0 };
return c;
}