diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-21 20:15:55 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 96a47877104d99e117b9fd97e43908f9e9567ec5 (patch) | |
tree | 2d7bec001304967a69796fd3975024662ffca330 /src/viewport.cpp | |
parent | aa220b2375efecf831ead0794e6de7b621e3c7a2 (diff) | |
download | openttd-96a47877104d99e117b9fd97e43908f9e9567ec5.tar.xz |
Codechange: Set ZoomLevel's base type to byte instead of using ZoomLevelByte
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 8ec315b16..8a1319072 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1692,7 +1692,7 @@ void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom */ static void ViewportDrawChk(const ViewPort *vp, int left, int top, int right, int bottom) { - if (ScaleByZoom(bottom - top, vp->zoom) * ScaleByZoom(right - left, vp->zoom) > 180000 * ZOOM_LVL_BASE * ZOOM_LVL_BASE) { + if (ScaleByZoom(bottom - top, vp->zoom) * ScaleByZoom(right - left, vp->zoom) > (int)(180000 * ZOOM_LVL_BASE * ZOOM_LVL_BASE)) { if ((bottom - top) > (right - left)) { int t = (top + bottom) >> 1; ViewportDrawChk(vp, left, top, right, t); |