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/savegame.cpp | |
parent | 82ab34aa83463179339eb8382edf1c22cacdad61 (diff) |
fix/remove obsolete todo comments
Diffstat (limited to 'serialize/savegame.cpp')
-rw-r--r-- | serialize/savegame.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |