diff options
author | bjarni <bjarni@openttd.org> | 2006-08-30 16:32:00 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-08-30 16:32:00 +0000 |
commit | 6cc29d5daf9334ae2e4a2ae317812f4ce4d4ba71 (patch) | |
tree | 04a72ac36acfeb6f68f88e96c5de05999c513e32 /ship_gui.c | |
parent | 747f9cf80a8466b17f64bc2447113970efdec339 (diff) | |
download | openttd-6cc29d5daf9334ae2e4a2ae317812f4ce4d4ba71.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 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c index 57bfddf1d..d2e5dde14 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -916,7 +916,7 @@ void DrawSmallOrderListShip(const Vehicle *v, int x, int y) } -const Widget _player_ships_widgets[] = { +static const Widget _player_ships_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_9805_SHIPS, STR_018C_WINDOW_TITLE_DRAG_THIS}, { WWT_STICKYBOX, RESIZE_LR, 14, 248, 259, 0, 13, 0x0, STR_STICKY_BUTTON}, @@ -970,7 +970,7 @@ static void ShowPlayerShipsLocal(PlayerID player, StationID station, OrderID ord Window *w; if (show_shared) { - w = AllocateWindowDescFront(&_player_ships_desc, (order << 16) | (VEH_Ship << 11) | VLW_SHARED_ORDERS); + w = AllocateWindowDescFront(&_player_ships_desc, (order << 16) | (VEH_Ship << 11) | VLW_SHARED_ORDERS | player); } else { uint16 VLW_flag = (station == INVALID_STATION) ? VLW_STANDARD : VLW_STATION_LIST; if (player == _local_player) { |