summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-10-02 00:28:31 +0000
committerbelugas <belugas@openttd.org>2006-10-02 00:28:31 +0000
commit2c45339e0ae0fa0b466b725eb2280a16a5b167d5 (patch)
tree824c32c54efb62eb8db1cd43c94dbe8c28a30b9a /player_gui.c
parent21591b5219a99a9d798c43dc2d89e7d00475f7cd (diff)
downloadopenttd-2c45339e0ae0fa0b466b725eb2280a16a5b167d5.tar.xz
(svn r6612) -Codechange: Use accessors for hidden_state.
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player_gui.c b/player_gui.c
index 4065cd675..d227f485f 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -654,7 +654,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
if (!IsWindowOfPrototype(w, _other_player_company_widgets)) {
AssignWidgetToWindow(w, (p->location_of_house != 0) ? _my_player_company_bh_widgets : _my_player_company_widgets);
- if (!_networking) SETBIT(w->hidden_state, 11); // hide company-password widget
+ SetWindowWidgetHiddenState(w, 11, !_networking); // Hide company-password widget
} else {
if (p->location_of_house == 0) SETBIT(dis, 7);