summaryrefslogtreecommitdiff
path: root/vehicle.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 /vehicle.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 'vehicle.c')
-rw-r--r--vehicle.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vehicle.c b/vehicle.c
index 1701ff70e..145d22561 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1449,10 +1449,7 @@ int32 CmdNameVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
StringID old_str = v->string_id;
v->string_id = str;
DeleteName(old_str);
- _train_sort_dirty[v->owner] = true;
- _aircraft_sort_dirty[v->owner] = true;
- _ship_sort_dirty[v->owner] = true;
- _road_sort_dirty[v->owner] = true;
+ ResortVehicleLists();
MarkWholeScreenDirty();
} else {
DeleteName(str);