diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 15:36:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 15:36:07 +0200 |
commit | 3981b5f5e0f191961f01699fab7c50533c48d352 (patch) | |
tree | 976e45d3bc809d2165078f0076b0829aa943201a /serialize | |
parent | 82ab34aa83463179339eb8382edf1c22cacdad61 (diff) |
fix/remove obsolete todo comments
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/old-savegame.cpp | 2 | ||||
-rw-r--r-- | serialize/savegame.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
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<critter, false>(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<typename F> void visit_scenery_proto(o_sc_g& s, F&& f) { using T = std::conditional_t<IsWriter, generic_scenery, generic_scenery_proto>; - // todo! make bitmask reader/writer constexpr struct { uint8_t bits; bool(*getter)(const T&); @@ -410,7 +409,7 @@ struct writer final : visitor_<writer, true> template<typename F> void visit(qual<std::shared_ptr<anim_atlas>>& a, atlas_type type, F&& f) { atlasid id = intern_atlas(a, type); visit(id, f); } - template<typename F> void write_scenery_proto(const scenery& obj, F&& f) // todo! replace scenery::subtype with inheritance! + template<typename F> 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); |