mirror of https://github.com/OpenTTD/OpenTTD
(svn r18162) -Fix: rest-of-train train selection
parent
f07fdac2d8
commit
4b225afad5
|
@ -99,14 +99,14 @@ void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID select
|
||||||
|
|
||||||
if (v->index == selection) {
|
if (v->index == selection) {
|
||||||
/* Set the highlight position */
|
/* Set the highlight position */
|
||||||
highlight_l = rtl ? px - width + 1 : px + 1;
|
highlight_l = rtl ? px - width : px;
|
||||||
highlight_r = rtl ? px + 1 : px + width + 1;
|
highlight_r = rtl ? px - 1 : px + width - 1;
|
||||||
sel_articulated = true;
|
sel_articulated = true;
|
||||||
} else if ((_cursor.vehchain && highlight_r != 0) || sel_articulated) {
|
} else if ((_cursor.vehchain && highlight_r != 0) || sel_articulated) {
|
||||||
if (rtl) {
|
if (rtl) {
|
||||||
highlight_r += width;
|
|
||||||
} else {
|
|
||||||
highlight_l -= width;
|
highlight_l -= width;
|
||||||
|
} else {
|
||||||
|
highlight_r += width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue