summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 11:19:30 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 11:19:30 +0000
commit548dd91ef0ed6d470dc3553b994022ead99ece95 (patch)
tree2f948640d743b22b564a36d2b01258c3e6650097 /src/smallmap_gui.cpp
parent28d25cadfc87398c3b352a07de377b836e4aa0d1 (diff)
downloadopenttd-548dd91ef0ed6d470dc3553b994022ead99ece95.tar.xz
(svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 68a9a056c..16ce51369 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -1304,7 +1304,7 @@ public:
sx = -hv.x;
sub = 0;
}
- if (sx > (int)MapMaxX() * TILE_SIZE - hv.x) {
+ if (sx > (int)(MapMaxX() * TILE_SIZE) - hv.x) {
sx = MapMaxX() * TILE_SIZE - hv.x;
sub = 0;
}
@@ -1312,7 +1312,7 @@ public:
sy = -hv.y;
sub = 0;
}
- if (sy > (int)MapMaxY() * TILE_SIZE - hv.y) {
+ if (sy > (int)(MapMaxY() * TILE_SIZE) - hv.y) {
sy = MapMaxY() * TILE_SIZE - hv.y;
sub = 0;
}