(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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user