(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.
This commit is contained in:
@@ -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
|
/* Calculate where a vertical line through the start point and
|
||||||
* a horizontal line from the selected end point intersect and
|
* a horizontal line from the selected end point intersect and
|
||||||
* use that point as the end point. */
|
* 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);
|
x = thd->selstart.x - (offset & ~TILE_UNIT_MASK);
|
||||||
y = thd->selstart.y - (offset & ~TILE_UNIT_MASK);
|
y = thd->selstart.y - (offset & ~TILE_UNIT_MASK);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user