From c471b626a24f82649fa15bd667af3d6f8327bcbd Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:26:08 +0100 Subject: [PATCH] code review --- client/lobby/OptionsTabBase.cpp | 3 +++ lib/registerTypes/RegisterTypesLobbyPacks.h | 2 +- lib/serializer/CSerializer.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/lobby/OptionsTabBase.cpp b/client/lobby/OptionsTabBase.cpp index 914d630f6..421b5673b 100644 --- a/client/lobby/OptionsTabBase.cpp +++ b/client/lobby/OptionsTabBase.cpp @@ -389,4 +389,7 @@ void OptionsTabBase::recreate() w->setItem(1); } } + + if(auto buttonCheatAllowed = widget("buttonCheatAllowed")) + buttonCheatAllowed->setSelectedSilent(SEL->getStartInfo()->cheatAllowed); } diff --git a/lib/registerTypes/RegisterTypesLobbyPacks.h b/lib/registerTypes/RegisterTypesLobbyPacks.h index 9028229cf..c5b5814b1 100644 --- a/lib/registerTypes/RegisterTypesLobbyPacks.h +++ b/lib/registerTypes/RegisterTypesLobbyPacks.h @@ -54,10 +54,10 @@ void registerTypesLobbyPacks(Serializer &s) s.template registerType(); s.template registerType(); s.template registerType(); - s.template registerType(); s.template registerType(); s.template registerType(); s.template registerType(); + s.template registerType(); } VCMI_LIB_NAMESPACE_END diff --git a/lib/serializer/CSerializer.h b/lib/serializer/CSerializer.h index 76a372690..58914184c 100644 --- a/lib/serializer/CSerializer.h +++ b/lib/serializer/CSerializer.h @@ -14,7 +14,7 @@ VCMI_LIB_NAMESPACE_BEGIN -const ui32 SERIALIZATION_VERSION = 831; +const ui32 SERIALIZATION_VERSION = 832; const ui32 MINIMAL_SERIALIZATION_VERSION = 831; const std::string SAVEGAME_MAGIC = "VCMISVG";