diff options
author | frosch <frosch@openttd.org> | 2010-06-07 19:43:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-07 19:43:40 +0000 |
commit | eb02ce0573aa9b4e6305f77b78c8263cbbaa9c7f (patch) | |
tree | cc0e1fdcbb2af6be4d64b9f432f57832b9f473b4 /src | |
parent | 0e4f13793d3f9cb5720a2fc132442778d48fe928 (diff) | |
download | openttd-eb02ce0573aa9b4e6305f77b78c8263cbbaa9c7f.tar.xz |
(svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken.
Diffstat (limited to 'src')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |