From fecef610262aaa492f25e764737f10911401be90 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 21 Mar 2024 12:42:51 +0100 Subject: d --- compat/limits.hpp | 3 --- serialize/savegame.cpp | 11 ++++------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/compat/limits.hpp b/compat/limits.hpp index 93c66951..ffad9c7c 100644 --- a/compat/limits.hpp +++ b/compat/limits.hpp @@ -35,7 +35,4 @@ template<> struct limits using integer_type = int64_t; }; -template requires std::is_integral_v using int_max = typename limits::max; -template requires std::is_integral_v using int_min = typename limits::min; - } // namespace floormat diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index bc2e2f5f..d5bbb914 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -447,18 +447,15 @@ struct writer final : visitor_ switch (type) { - case atlas_type::ground: name = reinterpret_cast(atlas)->name(); goto ok; - case atlas_type::wall: name = reinterpret_cast(atlas)->name(); goto ok; + case atlas_type::ground: name = reinterpret_cast(atlas)->name(); break; + case atlas_type::wall: name = reinterpret_cast(atlas)->name(); break; case atlas_type::vobj: case atlas_type::anim: name = reinterpret_cast(atlas)->name(); - goto ok; - case atlas_type::none: break; + default: + fm_abort("invalid atlas type '%d'", (int)type); } - fm_abort("invalid atlas type '%d'", (int)type); - -ok: do_visit(intern_string(name), f); } -- cgit v1.2.3