(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.

This commit is contained in:
frosch 2010-06-07 19:43:40 +00:00
parent 0e4f13793d
commit eb02ce0573
1 changed files with 1 additions and 1 deletions

View File

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