(svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full.

This commit is contained in:
rubidium
2008-06-24 13:49:13 +00:00
parent c81e4e3d7e
commit 6002e3d643
2 changed files with 4 additions and 2 deletions

View File

@@ -1309,7 +1309,7 @@ struct VehicleDetailsWindow : Window {
/* Add space for the cargo amount for each part. */
for (const Vehicle *u = v; u != NULL; u = u->Next()) {
height_extension += 11;
if (u->cargo_cap != 0) height_extension += 11;
}
ResizeWindow(this, 0, height_extension);