(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)
This commit is contained in:
belugas
2006-10-02 00:28:31 +00:00
parent 33e8c26c38
commit f5ee5bdb0e
8 changed files with 46 additions and 28 deletions

View File

@@ -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 */