From ea7b277a40bbf11e75aac5c82c4f14310acc89f0 Mon Sep 17 00:00:00 2001 From: dP Date: Mon, 19 Apr 2021 01:32:15 +0300 Subject: [PATCH] Fix #4: Always enable citymania login button --- src/citymania/cm_commands_gui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/citymania/cm_commands_gui.cpp b/src/citymania/cm_commands_gui.cpp index 2357372d..671459c5 100644 --- a/src/citymania/cm_commands_gui.cpp +++ b/src/citymania/cm_commands_gui.cpp @@ -25,7 +25,7 @@ namespace citymania { -bool _novahost = false; +bool _novahost = true; IniFile *_inilogin = NULL; static const int HTTPBUFLEN = 128; @@ -699,11 +699,11 @@ struct LoginWindow : Window { LoginWindow(WindowDesc *desc, WindowNumber window_number) : Window(desc) { this->InitNested(window_number); - if(_novahost || !_networking){ - this->DisableWidget(LWW_NICE); - this->DisableWidget(LWW_BTPRO); - } - if(!_novahost || !_networking) this->DisableWidget(LWW_NOVAPOLIS); + // if(_novahost || !_networking){ + // this->DisableWidget(LWW_NICE); + // this->DisableWidget(LWW_BTPRO); + // } + // if(!_novahost || !_networking) this->DisableWidget(LWW_NOVAPOLIS); } virtual void SetStringParameters(int widget) const @@ -734,7 +734,7 @@ struct LoginWindow : Window { { switch (widget) { case LWW_NOVAPOLIS: - if(_novahost && _networking) AccountLogin(CITYMANIA); + if(/*_novahost && */_networking) AccountLogin(CITYMANIA); break; case LWW_NICE: if(_networking) AccountLogin(NICE);