From eb02ce0573aa9b4e6305f77b78c8263cbbaa9c7f Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 7 Jun 2010 19:43:40 +0000 Subject: (svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken. --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 62502802e..1a108924f 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2356,7 +2356,7 @@ static void CalcRaildirsDrawstyle(TileHighlightData *thd, int x, int y, int meth /* 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); -- cgit v1.2.3-70-g09d2