diff options
author | smatz <smatz@openttd.org> | 2008-04-05 11:27:50 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-05 11:27:50 +0000 |
commit | d0fdbce6d20e159c75306cf274dc5d96207f52ba (patch) | |
tree | 8cac13d3ae9840f5708a9bc585b873cf5bf60343 /src/train_gui.cpp | |
parent | 3fdddeac40f1353858bc658b150b83b532652d5d (diff) | |
download | openttd-d0fdbce6d20e159c75306cf274dc5d96207f52ba.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.cpp | 2 |
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); } } } |