From 5b0915e67774c9e8ac84d192cf6bd409286166ec Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 10 Dec 2004 18:16:08 +0000 Subject: (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. --- aircraft_cmd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 992900366..74a823251 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -267,8 +267,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) } InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); - _vehicle_sort_dirty[VEHAIRCRAFT] = true; // build aircraft - InvalidateWindow(WC_AIRCRAFT_LIST, v->owner); + RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); } @@ -299,8 +298,7 @@ static bool CheckStoppedInHangar(Vehicle *v) static void DoDeleteAircraft(Vehicle *v) { DeleteWindowById(WC_VEHICLE_VIEW, v->index); - _vehicle_sort_dirty[VEHAIRCRAFT] = true; // delete aircraft - InvalidateWindow(WC_AIRCRAFT_LIST, v->owner); + RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); DeleteVehicleChain(v); } -- cgit v1.2.3-54-g00ecf