diff options
author | frosch <frosch@openttd.org> | 2008-11-20 16:48:22 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-11-20 16:48:22 +0000 |
commit | ee8fb221d3edefacdfce38d557788a6f45e63e98 (patch) | |
tree | 01f49b0d7a236025570c3e24c6736a1c8bd0c442 /src | |
parent | a1853ea27c447c7320bd2669e187365f85c8f7aa (diff) | |
download | openttd-ee8fb221d3edefacdfce38d557788a6f45e63e98.tar.xz |
(svn r14599) -Fix (r14598)[FS#2417]: Show again group-membership in the vehicle-lists. (Based on patch by PhilSophus)
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 5d913da1b..bd151426a 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -772,6 +772,10 @@ void BaseVehicleListWindow::DrawVehicleListItems(int x, VehicleID selected_vehic /* The vehicle got a name so we will print it */ SetDParam(0, v->index); DrawString(x + 19, y, STR_01AB, TC_FROMSTRING); + } else if (v->group_id != DEFAULT_GROUP) { + /* The vehicle has no name, but is member of a group, so print group name */ + SetDParam(0, v->group_id); + DrawString(x + 19, y, STR_GROUP_TINY_NAME, TC_BLACK); } if (this->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG) DrawSmallOrderList(v, x + 138, y); |