summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
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;
}