diff options
author | rubidium <rubidium@openttd.org> | 2010-09-08 21:28:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-08 21:28:50 +0000 |
commit | 881c6c679ff2606111cb890847147556142c3451 (patch) | |
tree | 2e4aa38f456a4510380f6614c93ccdba46590c47 /src/group_gui.cpp | |
parent | 0e840f7360895ae9759a556b011759fc4662b213 (diff) | |
download | openttd-881c6c679ff2606111cb890847147556142c3451.tar.xz |
(svn r20771) -Add: concept of vehicle list identifiers to identify a vehicle list instead of a string of parameters
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index b93a9e550..f51025e6f 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -190,7 +190,8 @@ public: this->vehicles.SetListing(*this->sorting); this->vehicles.ForceRebuild(); this->vehicles.NeedResort(); - this->BuildVehicleList(owner, this->group_sel, IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST); + VehicleListIdentifier vli(IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST, this->vehicle_type, owner, this->group_sel); + this->BuildVehicleList(vli); this->SortVehicleList(); this->groups.ForceRebuild(); @@ -302,7 +303,8 @@ public: /* If we select the all vehicles, this->list will contain all vehicles of the owner * else this->list will contain all vehicles which belong to the selected group */ - this->BuildVehicleList(owner, this->group_sel, IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST); + VehicleListIdentifier vli(IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST, this->vehicle_type, owner, this->group_sel); + this->BuildVehicleList(vli); this->SortVehicleList(); this->BuildGroupList(owner); |