summaryrefslogtreecommitdiffhomepage
path: root/test/save.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:36:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:36:07 +0200
commit3981b5f5e0f191961f01699fab7c50533c48d352 (patch)
tree976e45d3bc809d2165078f0076b0829aa943201a /test/save.cpp
parent82ab34aa83463179339eb8382edf1c22cacdad61 (diff)
fix/remove obsolete todo comments
Diffstat (limited to 'test/save.cpp')
-rw-r--r--test/save.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/save.cpp b/test/save.cpp
index cf4ccd44..f596cf00 100644
--- a/test/save.cpp
+++ b/test/save.cpp
@@ -35,7 +35,7 @@ chunk& Test::make_test_chunk(world& w, chunk_coords_ ch)
c[{K, K+1}].wall_north() = { metal2, 0 };
c[{K+1, K }].wall_west() = { metal2, 0 };
w.make_scenery(w.make_id(), {ch, {3, 4}}, scenery_proto(table));
- w.make_scenery(w.make_id(), {ch, {K, K+1}}, scenery_proto(control_panel)); // todo!
+ w.make_scenery(w.make_id(), {ch, {K, K+1}}, scenery_proto(control_panel));
auto L = light_proto{};
L.color = {64, 128, 252, 201};
L.max_distance = float{0.125};
@@ -229,7 +229,7 @@ void test_save_objs()
const auto objʹ = w.make_object<critter>(w.make_id(), coord, p);
fm_assert(objʹ);
const auto& obj = *objʹ;
- const_cast<uint16_t&>(obj.offset_frac_) = offset_frac;
+ const_cast<uint16_t&>(obj.offset_frac) = offset_frac;
auto w2 = reload_from_save(tmp, w);
const auto& obj2ʹ = w.find_object<critter>(obj.id);
fm_assert(obj2ʹ);
@@ -237,7 +237,7 @@ void test_save_objs()
fm_assert(p.name == obj2.name);
fm_assert(p.frame == obj2.frame);
fm_assert(p.speed == obj2.speed);
- fm_assert(obj.offset_frac_ == obj2.offset_frac_);
+ fm_assert(obj.offset_frac == obj2.offset_frac);
assert_chunks_equal(w.at(ch), w2.at(ch));
}