summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-10 18:16:08 +0000
committertron <tron@openttd.org>2004-12-10 18:16:08 +0000
commit5b0915e67774c9e8ac84d192cf6bd409286166ec (patch)
tree66a06b77592865f6aa9640d6c1ddd3648d89f2d3 /water_cmd.c
parent55bac62c5ac9a404f970fdfc1eccde155dea641c (diff)
downloadopenttd-5b0915e67774c9e8ac84d192cf6bd409286166ec.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 'water_cmd.c')
-rw-r--r--water_cmd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 9a7db7ad3..8682e5911 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -533,8 +533,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);
+ RebuildVehicleLists();
}
else if (v->type == VEH_Train) {
@@ -550,8 +549,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);
+ RebuildVehicleLists();
} else
return;