From cfac8dbbc6076d9f782e8c406128686f58b428df Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 22 Feb 2015 14:14:30 +0000 Subject: (svn r27160) -Fix: Division of signed values by TILE_SIZE requires cast to stay signed. --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/viewport.cpp') diff --git a/src/viewport.cpp b/src/viewport.cpp index 3fc14fcc7..228a67672 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2569,7 +2569,7 @@ bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant) && y >= 0 && y <= (int)MapSizeY() * (int)TILE_SIZE - 1) { z = GetSlopePixelZ(x, y); } else { - z = TileHeightOutsideMap(x / TILE_SIZE, y / TILE_SIZE); + z = TileHeightOutsideMap(x / (int)TILE_SIZE, y / (int)TILE_SIZE); } } -- cgit v1.2.3-54-g00ecf