summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-08-30 16:32:00 +0000
committerbjarni <bjarni@openttd.org>2006-08-30 16:32:00 +0000
commitce24a73673a6191b568a789b3f8e2108bb406d98 (patch)
tree04a72ac36acfeb6f68f88e96c5de05999c513e32 /roadveh_gui.c
parenta0416e269079b2943cf3f69f3acefeb7180f0a44 (diff)
downloadopenttd-ce24a73673a6191b568a789b3f8e2108bb406d98.tar.xz
(svn r6239) -Code cleanup: cleaned up PlayerVehWndProc
code to delete an empty shared orders list is now much simpler cleaned up the code to handle button clicks fixed an assert if widget 9 was pressed on a list with vehicles for another company
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index ac3688df0..56e96dfd2 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -912,7 +912,7 @@ void ShowRoadDepotWindow(TileIndex tile)
}
}
-const Widget _player_roadveh_widgets[] = {
+static const Widget _player_roadveh_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_RIGHT, 14, 11, 247, 0, 13, STR_9001_ROAD_VEHICLES, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_STICKYBOX, RESIZE_LR, 14, 248, 259, 0, 13, 0x0, STR_STICKY_BUTTON},
@@ -967,7 +967,7 @@ static void ShowPlayerRoadVehiclesLocal(PlayerID player, StationID station, Orde
Window *w;
if (show_shared) {
- w = AllocateWindowDescFront(&_player_roadveh_desc, (order << 16) | (VEH_Road << 11) | VLW_SHARED_ORDERS);
+ w = AllocateWindowDescFront(&_player_roadveh_desc, (order << 16) | (VEH_Road << 11) | VLW_SHARED_ORDERS | player);
} else {
uint16 VLW_flag = (station == INVALID_STATION) ? VLW_STANDARD : VLW_STATION_LIST;
if (player == _local_player) {