disable cb town button in scenario editor

This commit is contained in:
Pavel Stupnikov
2016-08-04 16:51:49 +03:00
parent 18da23a4dd
commit 1947b8bf34
2 changed files with 5 additions and 1 deletions

View File

@@ -363,7 +363,8 @@ public:
this->SetWidgetDisabledState(WID_TV_CHANGE_NAME, _networking && !_network_server);
// extern bool _novahost;
// this->wcb_disable = !_networking || !_novahost || this->town->larger_town || _game_mode == GM_EDITOR;
// this->SetWidgetDisabledState(WID_TV_CB, this->wcb_disable);
// this->wcb_disable = (_game_mode == GM_EDITOR);
this->SetWidgetDisabledState(WID_TV_CB, _game_mode == GM_EDITOR);
}
virtual void SetStringParameters(int widget) const