summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-18 10:45:33 +0000
committerrubidium <rubidium@openttd.org>2009-11-18 10:45:33 +0000
commit4b225afad534accae1490d142b0d8ca0565b71a6 (patch)
tree4a6821dfc02d0fc6b91a1feea66e77f5d204c8f5
parentf07fdac2d8fc4f062f09ceaef1a3e1048a14b3c7 (diff)
downloadopenttd-4b225afad534accae1490d142b0d8ca0565b71a6.tar.xz
(svn r18162) -Fix: rest-of-train train selection
-rw-r--r--src/train_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 6f2046038..65f46d30d 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -99,14 +99,14 @@ void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID select
if (v->index == selection) {
/* Set the highlight position */
- highlight_l = rtl ? px - width + 1 : px + 1;
- highlight_r = rtl ? px + 1 : px + width + 1;
+ highlight_l = rtl ? px - width : px;
+ highlight_r = rtl ? px - 1 : px + width - 1;
sel_articulated = true;
} else if ((_cursor.vehchain && highlight_r != 0) || sel_articulated) {
if (rtl) {
- highlight_r += width;
- } else {
highlight_l -= width;
+ } else {
+ highlight_r += width;
}
}