From 3981b5f5e0f191961f01699fab7c50533c48d352 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 May 2024 15:36:07 +0200 Subject: fix/remove obsolete todo comments --- serialize/old-savegame.cpp | 2 +- serialize/savegame.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'serialize') diff --git a/serialize/old-savegame.cpp b/serialize/old-savegame.cpp index 247462b6..073756d2 100644 --- a/serialize/old-savegame.cpp +++ b/serialize/old-savegame.cpp @@ -438,7 +438,7 @@ void reader_state::read_chunks(reader_t& s) } SET_CHUNK_SIZE(); auto e = _world->make_object(oid, {ch, local}, proto); - e->offset_frac_ = (uint16_t)((Vector2(offset_frac)*(1.f/65355)).length()*32768); + e->offset_frac = (uint16_t)((Vector2(offset_frac)*(1.f/65355)).length()*32768); (void)e; break; } diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index 40e6cba4..0c664eed 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -267,7 +267,6 @@ struct visitor_ template void visit_scenery_proto(o_sc_g& s, F&& f) { using T = std::conditional_t; - // todo! make bitmask reader/writer constexpr struct { uint8_t bits; bool(*getter)(const T&); @@ -410,7 +409,7 @@ struct writer final : visitor_ template void visit(qual>& a, atlas_type type, F&& f) { atlasid id = intern_atlas(a, type); visit(id, f); } - template void write_scenery_proto(const scenery& obj, F&& f) // todo! replace scenery::subtype with inheritance! + template void write_scenery_proto(const scenery& obj, F&& f) { auto sc_type = obj.scenery_type(); fm_debug_assert(sc_type != scenery_type::none && sc_type < scenery_type::COUNT); -- cgit v1.2.3