comparison src/vehicle_gui.cpp @ 10348:ac68018602dc draft

(svn r14599) -Fix (r14598)[FS#2417]: Show again group-membership in the vehicle-lists. (Based on patch by PhilSophus)
author frosch <frosch@openttd.org>
date Thu, 20 Nov 2008 16:48:22 +0000
parents 615db2678973
children 399a56984e58
comparison
equal deleted inserted replaced
10347:001e5d0511d5 10348:ac68018602dc
770 770
771 if (v->name != NULL) { 771 if (v->name != NULL) {
772 /* The vehicle got a name so we will print it */ 772 /* The vehicle got a name so we will print it */
773 SetDParam(0, v->index); 773 SetDParam(0, v->index);
774 DrawString(x + 19, y, STR_01AB, TC_FROMSTRING); 774 DrawString(x + 19, y, STR_01AB, TC_FROMSTRING);
775 } else if (v->group_id != DEFAULT_GROUP) {
776 /* The vehicle has no name, but is member of a group, so print group name */
777 SetDParam(0, v->group_id);
778 DrawString(x + 19, y, STR_GROUP_TINY_NAME, TC_BLACK);
775 } 779 }
776 780
777 if (this->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG) DrawSmallOrderList(v, x + 138, y); 781 if (this->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG) DrawSmallOrderList(v, x + 138, y);
778 782
779 if (v->IsInDepot()) { 783 if (v->IsInDepot()) {