summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-12-16 14:03:21 +0000
committersmatz <smatz@openttd.org>2010-12-16 14:03:21 +0000
commit728220ec8863f9d1f9cdbbdcdb839be708992a40 (patch)
tree114cc5e76521cb87f2a68dc11f165a1b8047ee19
parent92d54c1e96f301ab883f15959762ea6d92cd263b (diff)
downloadopenttd-728220ec8863f9d1f9cdbbdcdb839be708992a40.tar.xz
(svn r21531) -Fix: gcc 3.4 warning
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 84f042022..a0474954c 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 ? -(int)TILE_SIZE : TILE_SIZE;
- int interval_b = b_size < 0 ? -(int)TILE_SIZE : TILE_SIZE;
+ int interval_a = a_size < 0 ? -(int)TILE_SIZE : (int)TILE_SIZE;
+ int interval_b = b_size < 0 ? -(int)TILE_SIZE : (int)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) {