summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-08 01:20:47 +0000
committerbelugas <belugas@openttd.org>2007-12-08 01:20:47 +0000
commit544325590c87cbcb6645b2b67c194a892e56ced7 (patch)
treefa5bb81db42708ef19334b597f9946c859de2ebc /src/player_gui.cpp
parentecb9382c7e96da400bb3346dcd7e134f0146fee4 (diff)
downloadopenttd-544325590c87cbcb6645b2b67c194a892e56ced7.tar.xz
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r--src/player_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp
index 16d5ff3f3..d296ed6d8 100644
--- a/src/player_gui.cpp
+++ b/src/player_gui.cpp
@@ -1218,11 +1218,11 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
if (DoCommandP(e->we.place.tile, 0, 0, NULL, CMD_BUILD_COMPANY_HQ | CMD_NO_WATER | CMD_MSG(STR_7071_CAN_T_BUILD_COMPANY_HEADQUARTERS)))
ResetObjectToPlace();
w->widget[PCW_WIDGET_BUILD_VIEW_HQ].type = WWT_PUSHTXTBTN; // this button can now behave as a normal push button
- RaiseWindowButtons(w);
+ w->RaiseButtons();
break;
case WE_ABORT_PLACE_OBJ:
- RaiseWindowButtons(w);
+ w->RaiseButtons();
break;
case WE_DESTROY: