diff options
author | tron <tron@openttd.org> | 2004-12-10 18:16:08 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-10 18:16:08 +0000 |
commit | 13e8d01dcbc3c7573de1667d5c392d3640197890 (patch) | |
tree | 66a06b77592865f6aa9640d6c1ddd3648d89f2d3 /ship_cmd.c | |
parent | 804d6828dd4f8948e121adecf698b13c43a206b5 (diff) | |
download | openttd-13e8d01dcbc3c7573de1667d5c392d3640197890.tar.xz |
(svn r1009) -Feature: per-station vehicle lists
This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule.
As side effect this gets rid of some global variables.
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index 578fce38a..2c91fda3c 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -870,8 +870,7 @@ int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) VehiclePositionChanged(v); InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); - _vehicle_sort_dirty[VEHSHIP] = true; // build a ship - InvalidateWindow(WC_SHIPS_LIST, v->owner); + RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); } @@ -894,8 +893,7 @@ int32 CmdSellShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); - _vehicle_sort_dirty[VEHSHIP] = true; // sell a ship - InvalidateWindow(WC_SHIPS_LIST, v->owner); + RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); DeleteWindowById(WC_VEHICLE_VIEW, v->index); DeleteVehicle(v); |