Skip to content

Commit

Permalink
Fix #4: Always enable citymania login button
Browse files Browse the repository at this point in the history
  • Loading branch information
ldpl committed Apr 18, 2021
1 parent 33f4c49 commit ea7b277
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/citymania/cm_commands_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace citymania {

bool _novahost = false;
bool _novahost = true;
IniFile *_inilogin = NULL;

static const int HTTPBUFLEN = 128;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ea7b277

Please sign in to comment.