diff options
author | belugas <belugas@openttd.org> | 2008-08-25 16:10:34 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-08-25 16:10:34 +0000 |
commit | de43d17a8253a7fb081a67117a15cf089b18c549 (patch) | |
tree | 939b2bf0ef664550aa207ba7a014be3c9614adb9 /src/player_gui.cpp | |
parent | 7b632aa8aa8a754234b82fc911f185c500bd6768 (diff) | |
download | openttd-de43d17a8253a7fb081a67117a15cf089b18c549.tar.xz |
(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r-- | src/player_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp index 006e7244d..8b1c24ab3 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -1185,10 +1185,10 @@ struct PlayerCompanyWindow : Window this->SetWidgetHiddenState(PCW_WIDGET_COLOR_SCHEME, !local); this->SetWidgetHiddenState(PCW_WIDGET_PRESIDENT_NAME, !local); this->SetWidgetHiddenState(PCW_WIDGET_COMPANY_NAME, !local); - this->widget[PCW_WIDGET_BUILD_VIEW_HQ].data = (local && p->location_of_house == 0) ? STR_706F_BUILD_HQ : STR_7072_VIEW_HQ; - if (local && p->location_of_house != 0) this->widget[PCW_WIDGET_BUILD_VIEW_HQ].type = WWT_PUSHTXTBTN; //HQ is already built. - this->SetWidgetDisabledState(PCW_WIDGET_BUILD_VIEW_HQ, !local && p->location_of_house == 0); - this->SetWidgetHiddenState(PCW_WIDGET_RELOCATE_HQ, !local || p->location_of_house == 0); + this->widget[PCW_WIDGET_BUILD_VIEW_HQ].data = (local && p->location_of_HQ == 0) ? STR_706F_BUILD_HQ : STR_7072_VIEW_HQ; + if (local && p->location_of_HQ != 0) this->widget[PCW_WIDGET_BUILD_VIEW_HQ].type = WWT_PUSHTXTBTN; //HQ is already built. + this->SetWidgetDisabledState(PCW_WIDGET_BUILD_VIEW_HQ, !local && p->location_of_HQ == 0); + this->SetWidgetHiddenState(PCW_WIDGET_RELOCATE_HQ, !local || p->location_of_HQ == 0); this->SetWidgetHiddenState(PCW_WIDGET_BUY_SHARE, local); this->SetWidgetHiddenState(PCW_WIDGET_SELL_SHARE, local); this->SetWidgetHiddenState(PCW_WIDGET_COMPANY_PASSWORD, !local || !_networking); @@ -1267,7 +1267,7 @@ struct PlayerCompanyWindow : Window break; case PCW_WIDGET_BUILD_VIEW_HQ: { - TileIndex tile = GetPlayer((PlayerID)this->window_number)->location_of_house; + TileIndex tile = GetPlayer((PlayerID)this->window_number)->location_of_HQ; if (tile == 0) { if ((byte)this->window_number != _local_player) return; SetObjectToPlaceWnd(SPR_CURSOR_HQ, PAL_NONE, VHM_RECT, this); |