summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-07-12 16:00:11 +0000
committerfrosch <frosch@openttd.org>2009-07-12 16:00:11 +0000
commit78eccd05befe40a006974daf0b29dfb1b2382b65 (patch)
treedfc209ba6db7b370111bda05a1b8649de8667821 /src/depot_gui.cpp
parent9efd32d13ce11aedf020cd2ce9eddc2ccaa72d32 (diff)
downloadopenttd-78eccd05befe40a006974daf0b29dfb1b2382b65.tar.xz
(svn r16799) -Codechange: When drawing articulated road vehicles in the vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 354ac8057..6bd364deb 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -276,7 +276,7 @@ struct DepotWindow : Window {
DrawString(this->widget[DEPOT_WIDGET_MATRIX].left, this->widget[DEPOT_WIDGET_MATRIX].right - 1, y + 4, STR_TINY_BLACK, TC_FROMSTRING, SA_RIGHT); // Draw the counter
break;
- case VEH_ROAD: DrawRoadVehImage( v, x + 24, sprite_y, this->sel, 1); break;
+ case VEH_ROAD: DrawRoadVehImage( v, x + 24, sprite_y, this->sel, 28); break;
case VEH_SHIP: DrawShipImage( v, x + 19, sprite_y - 1, this->sel); break;
case VEH_AIRCRAFT: {
const Sprite *spr = GetSprite(v->GetImage(DIR_W), ST_NORMAL);