diff options
author | darkvater <darkvater@openttd.org> | 2004-09-06 18:15:13 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-06 18:15:13 +0000 |
commit | bf0652d3fce57024fe56f75d43898a261fea7570 (patch) | |
tree | ff59ad94248c5c270741fe954c139e1f953b197c /aircraft_cmd.c | |
parent | df1397a47e68cf07d0a0d4fe02758f4b4f8c469f (diff) | |
download | openttd-bf0652d3fce57024fe56f75d43898a261fea7570.tar.xz |
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code).
-Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first
-CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index c842f0bee..a9530636b 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -336,6 +336,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); InvalidateWindow(WC_COMPANY, v->owner); } @@ -367,6 +368,7 @@ static bool CheckStoppedInHangar(Vehicle *v) void DoDeleteAircraft(Vehicle *v) { DeleteWindowById(WC_VEHICLE_VIEW, v->index); + _vehicle_sort_dirty[VEHAIRCRAFT] = true; // delete aircraft InvalidateWindow(WC_AIRCRAFT_LIST, v->owner); InvalidateWindow(WC_COMPANY, v->owner); DeleteVehicleChain(v); |