Mercurial > hg > openttd
changeset 6833:dff2f8df67f4 draft
(svn r10072) -Fix r10070: typo in zoom.hpp
author | truelight <truelight@openttd.org> |
---|---|
date | Fri, 08 Jun 2007 19:06:35 +0000 |
parents | 17319fb8c1c3 |
children | 3f0cfca3411d |
files | src/zoom.hpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/zoom.hpp +++ b/src/zoom.hpp @@ -37,7 +37,7 @@ { 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)