diff options
author | belugas <belugas@openttd.org> | 2006-10-02 00:28:31 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-10-02 00:28:31 +0000 |
commit | 2c45339e0ae0fa0b466b725eb2280a16a5b167d5 (patch) | |
tree | 824c32c54efb62eb8db1cd43c94dbe8c28a30b9a /vehicle_gui.c | |
parent | 21591b5219a99a9d798c43dc2d89e7d00475f7cd (diff) | |
download | openttd-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 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 51596726b..b5068a0b9 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -1393,12 +1393,12 @@ static void CreateVehicleListWindow(Window *w) /* Hide the widgets that we will not use in this window * Some windows contains actions only fit for the owner */ if (player == _local_player) { - SETBIT(w->hidden_state, VLW_WIDGET_OTHER_PLAYER_FILLER); + HideWindowWidget(w, VLW_WIDGET_OTHER_PLAYER_FILLER); } else { - SETBIT(w->hidden_state, VLW_WIDGET_SEND_TO_DEPOT); - SETBIT(w->hidden_state, VLW_WIDGET_AUTOREPLACE); - SETBIT(w->hidden_state, VLW_WIDGET_STOP_ALL); - SETBIT(w->hidden_state, VLW_WIDGET_START_ALL); + HideWindowWidget(w, VLW_WIDGET_SEND_TO_DEPOT); + HideWindowWidget(w, VLW_WIDGET_AUTOREPLACE); + HideWindowWidget(w, VLW_WIDGET_STOP_ALL); + HideWindowWidget(w, VLW_WIDGET_START_ALL); } /* Set up the window widgets */ |