(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate

This commit is contained in:
smatz
2008-04-05 11:27:50 +00:00
parent 3fdddeac40
commit d0fdbce6d2
5 changed files with 32 additions and 3 deletions

View File

@@ -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);
}
}
}