summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-22 14:14:30 +0000
committerfrosch <frosch@openttd.org>2015-02-22 14:14:30 +0000
commitcfac8dbbc6076d9f782e8c406128686f58b428df (patch)
tree935aecf17d387a13f6b0c9aa2a724abcc01ddb4d /src/smallmap_gui.cpp
parentfc72d3dc8f848114287fef03208acacd9fdb4e96 (diff)
downloadopenttd-cfac8dbbc6076d9f782e8c406128686f58b428df.tar.xz
(svn r27160) -Fix: Division of signed values by TILE_SIZE requires cast to stay signed.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 3f9d0582a..ef0f4dd0f 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -847,7 +847,7 @@ void SmallMapWindow::DrawVehicles(const DrawPixelInfo *dpi, Blitter *blitter) co
if (v->vehstatus & (VS_HIDDEN | VS_UNCLICKABLE)) continue;
/* Remap into flat coordinates. */
- Point pt = this->RemapTile(v->x_pos / TILE_SIZE, v->y_pos / TILE_SIZE);
+ Point pt = this->RemapTile(v->x_pos / (int)TILE_SIZE, v->y_pos / (int)TILE_SIZE);
int y = pt.y - dpi->top;
if (!IsInsideMM(y, 0, dpi->height)) continue; // y is out of bounds.