summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-05 11:27:50 +0000
committersmatz <smatz@openttd.org>2008-04-05 11:27:50 +0000
commitb2e4adc2b8e3a06c25f0ad988a3826b6f4ddfc85 (patch)
tree8cac13d3ae9840f5708a9bc585b873cf5bf60343 /src/train_gui.cpp
parentbdd64495cd7af3fa064ed58a5419845eb78def46 (diff)
downloadopenttd-b2e4adc2b8e3a06c25f0ad988a3826b6f4ddfc85.tar.xz
(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index fd46a10bb..41aceb61a 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -98,6 +98,8 @@ void DrawTrainImage(const Vehicle *v, int x, int y, VehicleID selection, int cou
/* Set the highlight position */
highlight_l = WagonLengthToPixels(dx) + 1;
highlight_r = WagonLengthToPixels(dx + width) + 1;
+ } else if (_cursor.vehchain && highlight_r != 0) {
+ highlight_r += WagonLengthToPixels(width);
}
}
}