Fix HQ placement hotkey

This commit is contained in:
Pavel Stupnikov
2017-04-14 16:02:18 +03:00
parent 8f3a9d7261
commit cb5bd6c408
3 changed files with 8 additions and 1 deletions

View File

@@ -74,6 +74,12 @@ This is usable for any OpenTTD servers
== CHANGELOG ==
*** 1.7.0 (12 Apr 2017) ***
- Polyline patch updated to version 11a
- Always autorotate drive-through road/tram stops when placed on roads.
- Added industry type id to newgrf debug window (may be useful for newgrf developers)
- Added a trick to join servers that have diffirent game version. Hold Ctrl while clicking greyed-out join button and it will work. But still may fail version check later as not all versions are supported. And even if you do manage to join the game keep in mind that it's not supposed to work like that and is highly likely to desync or crash at some point.
*** 1.6.1-2 (29 Jul 2016) ***
- Fixed crash when joining ECS servers on windows

View File

@@ -395,6 +395,7 @@ struct MainWindow : Window
break;
case GHK_BORROW_ALL:
fprintf(stderr, "Borow all!\n");
DoCommandP(0, 0, 1, CMD_INCREASE_LOAN | CMD_MSG(STR_ERROR_CAN_T_BORROW_ANY_MORE_MONEY));
break;

View File

@@ -2160,7 +2160,7 @@ struct MainToolbarWindow : Window {
case MTHK_CLIENT_LIST: if (_networking) ShowClientList(); break;
case MTHK_COMMANDS_GUI: extern bool _novahost; if (_networking && _novahost){ ShowCommandsToolbar(); } break;
#endif
case MTHK_BUILD_HQ: if(_current_company != COMPANY_SPECTATOR){ _last_started_action = CBF_BUILD_HQ; BuildCompanyHQ(); } break;
case MTHK_BUILD_HQ: if(_current_company != COMPANY_SPECTATOR){ _last_started_action = BuildCompanyHQ(); } break;
case MTHK_CARGOTABLE: if(_current_company != COMPANY_SPECTATOR){ ShowCompanyCargos(_current_company); } break;
case MTHK_TREES: if(_current_company != COMPANY_SPECTATOR){ BuildTreesWindow(); } break;
case MTHK_SIGN_LIST: ShowSignList(); break;