diff options
author | rubidium <rubidium@openttd.org> | 2008-06-24 13:49:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-24 13:49:13 +0000 |
commit | c3009c34eeaae84afe2967649e953ac82d9093d9 (patch) | |
tree | afb9a0a6291ebaa41ba4578867f885f0f9fe5503 /src/vehicle_gui.cpp | |
parent | 5b973282de54ad5b1a53326d4cd5d5fc8c41a1ad (diff) | |
download | openttd-c3009c34eeaae84afe2967649e953ac82d9093d9.tar.xz |
(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.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 398db3eb5..404e82460 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -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); |