summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-21 05:42:41 +0000
committersmatz <smatz@openttd.org>2010-05-21 05:42:41 +0000
commit93233a9335aa26404405af54758e164bc0b96b41 (patch)
tree76f1a63a14652c2989fed1b3158f6898cdee83ce /src/viewport.cpp
parent52b211f939574ac0fd3824160e4fb81291815c26 (diff)
downloadopenttd-93233a9335aa26404405af54758e164bc0b96b41.tar.xz
(svn r19870) -Codechange: silence some of GCC 3.3 warnings
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 65cc9ff00..171c0b6fc 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2330,9 +2330,9 @@ static void CalcRaildirsDrawstyle(TileHighlightData *thd, int x, int y, int meth
/* 'Build' the last half rail tile if needed */
if ((offset & TILE_UNIT_MASK) > (TILE_SIZE / 2)) {
if (dx + dy >= (int)TILE_SIZE) {
- x += (dx + dy < 0) ? TILE_SIZE : -(int)TILE_SIZE;
+ x += (dx + dy < 0) ? (int)TILE_SIZE : -(int)TILE_SIZE;
} else {
- y += (dx + dy < 0) ? TILE_SIZE : -(int)TILE_SIZE;
+ y += (dx + dy < 0) ? (int)TILE_SIZE : -(int)TILE_SIZE;
}
}
@@ -2365,9 +2365,9 @@ static void CalcRaildirsDrawstyle(TileHighlightData *thd, int x, int y, int meth
/* 'Build' the last half rail tile if needed */
if ((offset & TILE_UNIT_MASK) > (TILE_SIZE / 2)) {
if (dx - dy < 0) {
- y += (dx > dy) ? TILE_SIZE : -(int)TILE_SIZE;
+ y += (dx > dy) ? (int)TILE_SIZE : -(int)TILE_SIZE;
} else {
- x += (dx < dy) ? TILE_SIZE : -(int)TILE_SIZE;
+ x += (dx < dy) ? (int)TILE_SIZE : -(int)TILE_SIZE;
}
}