Changeset - r7417:829d908ad0e1
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-08-06 12:54:03
maedhros@openttd.org
(svn r10810) -Fix (r10097): Add a comma between different cargo types if an articulated vehicle carries more than one cargo.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/roadveh_gui.cpp
Show inline comments
 
@@ -142,12 +142,14 @@ static void RoadVehDetailsWndProc(Window
 
					SetDParam(0, i);
 
					SetDParam(1, max_cargo[i]);
 
					GetString(buffer, STR_BARE_CARGO, lastof(buffer));
 

	
 
					if (!first) strecat(capacity, ", ", lastof(capacity));
 
					strecat(capacity, buffer, lastof(capacity));
 

	
 
					first = false;
 
				}
 
			}
 

	
 
			SetDParamStr(0, capacity);
 
			DrawStringTruncated(34, 67 + y_offset, STR_JUST_STRING, 0, w->width - 34);
 

	
0 comments (0 inline, 0 general)