diff options
author | truelight <truelight@openttd.org> | 2007-06-08 19:06:35 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-08 19:06:35 +0000 |
commit | 653b34301823f8e83a844c4eb2a26c6c26f374d0 (patch) | |
tree | e35ff7ee2751b8b2a3a62ab9afd99127546cf303 | |
parent | 6b1cb3aaae00d09b81141102ef2f2d17c13dcd10 (diff) | |
download | openttd-653b34301823f8e83a844c4eb2a26c6c26f374d0.tar.xz |
(svn r10072) -Fix r10070: typo in zoom.hpp
-rw-r--r-- | src/zoom.hpp | 2 |
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) |