Fix #4: Always enable citymania login button

This commit is contained in:
dP
2021-04-19 01:32:15 +03:00
parent 33f4c4996a
commit ea7b277a40

View File

@@ -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);