Changeset - r15291:e0b498e012c5
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-06-07 19:43:40
frosch@openttd.org
(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -2356,7 +2356,7 @@ static void CalcRaildirsDrawstyle(TileHi
 
					/* Calculate where a vertical line through the start point and
 
					 * a horizontal line from the selected end point intersect and
 
					 * use that point as the end point. */
 
					int offset = (raw_dx + raw_dy + TILE_SIZE) / 2;
 
					int offset = (raw_dx + raw_dy + (int)TILE_SIZE) / 2;
 
					x = thd->selstart.x - (offset & ~TILE_UNIT_MASK);
 
					y = thd->selstart.y - (offset & ~TILE_UNIT_MASK);
 

	
0 comments (0 inline, 0 general)