mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.
This commit is contained in:
parent
0e4f13793d
commit
eb02ce0573
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue