summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-13 15:34:30 +0000
committerrubidium <rubidium@openttd.org>2010-12-13 15:34:30 +0000
commit20364bcefacead2e3d6ed3acc910ec0433b85d6f (patch)
tree90e3e93687e5e836ab1d381ef8d0b56faa41e171 /src/viewport.cpp
parent6892cc8a60df5ea34dc882eaa19d00fbdfa0a87d (diff)
downloadopenttd-20364bcefacead2e3d6ed3acc910ec0433b85d6f.tar.xz
(svn r21501) -Fix (rnotlongago): guess what was complaining this time?
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 71824e367..84f042022 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1764,8 +1764,8 @@ static void SetSelectionTilesDirty()
/* a_size, b_size describe a rectangle with rotated coordinates */
int a_size = x_size + y_size, b_size = x_size - y_size;
- int interval_a = a_size < 0 ? -TILE_SIZE : TILE_SIZE;
- int interval_b = b_size < 0 ? -TILE_SIZE : TILE_SIZE;
+ int interval_a = a_size < 0 ? -(int)TILE_SIZE : TILE_SIZE;
+ int interval_b = b_size < 0 ? -(int)TILE_SIZE : TILE_SIZE;
for (int a = -interval_a; a != a_size + interval_a; a += interval_a) {
for (int b = -interval_b; b != b_size + interval_b; b += interval_b) {