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 | 5b18dccb6b4873ee5cf5bda7d061e05578e28b98 (patch) | |
tree | e35ff7ee2751b8b2a3a62ab9afd99127546cf303 | |
parent | abb4ab74cf8b83bf91cb87f4ec560951d4b6f641 (diff) | |
download | openttd-5b18dccb6b4873ee5cf5bda7d061e05578e28b98.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) |