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 /water_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 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/water_cmd.c b/water_cmd.c index fa22d5a1e..789ceb446 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -531,6 +531,7 @@ static void FloodVehicle(Vehicle *v) v->vehstatus |= VS_CRASHED; v->u.road.crashed_ctr = 2000; // max 2220, disappear pretty fast + _vehicle_sort_dirty[VEHROAD] = true; InvalidateWindow(WC_ROADVEH_LIST, v->owner); } @@ -547,6 +548,7 @@ static void FloodVehicle(Vehicle *v) v = u; v->u.rail.crash_anim_pos = 4000; // max 4440, disappear pretty fast + _vehicle_sort_dirty[VEHTRAIN] = true; InvalidateWindow(WC_TRAINS_LIST, v->owner); } |