Changeset - r13628:29fed4984dc7
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-18 10:45:33
rubidium@openttd.org
(svn r18162) -Fix: rest-of-train train selection
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/train_gui.cpp
Show inline comments
 
@@ -99,14 +99,14 @@ void DrawTrainImage(const Train *v, int 
 

	
 
		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;
 
				highlight_l -= width;
 
			} else {
 
				highlight_l -= width;
 
				highlight_r += width;
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)