summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-08 19:06:35 +0000
committertruelight <truelight@openttd.org>2007-06-08 19:06:35 +0000
commit653b34301823f8e83a844c4eb2a26c6c26f374d0 (patch)
treee35ff7ee2751b8b2a3a62ab9afd99127546cf303
parent6b1cb3aaae00d09b81141102ef2f2d17c13dcd10 (diff)
downloadopenttd-653b34301823f8e83a844c4eb2a26c6c26f374d0.tar.xz
(svn r10072) -Fix r10070: typo in zoom.hpp
-rw-r--r--src/zoom.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zoom.hpp b/src/zoom.hpp
index 500182d71..65937177b 100644
--- a/src/zoom.hpp
+++ b/src/zoom.hpp
@@ -37,7 +37,7 @@ static inline int ScaleByZoom(int value, ZoomLevel zoom)
{
if (zoom == ZOOM_LVL_NORMAL) return value;
int izoom = (int)zoom - (int)ZOOM_LVL_NORMAL;
- return (zoom > ZOOM_LVL_NORMAL) ? value << izoom : (value + (1 << -izoom)) >> -izoom;
+ return (zoom > ZOOM_LVL_NORMAL) ? value << izoom : (value + (1 << -izoom) - 1) >> -izoom;
}
static inline int UnScaleByZoom(int value, ZoomLevel zoom)