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
commitf5ee5bdb0e06c9492ae65949c1c0b09c13fa5c10 (patch)
tree824c32c54efb62eb8db1cd43c94dbe8c28a30b9a /player_gui.c
parent33e8c26c38ac228a22868a27687e0a92d1ec9a29 (diff)
downloadopenttd-f5ee5bdb0e06c9492ae65949c1c0b09c13fa5c10.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);