diff options
author | smatz <smatz@openttd.org> | 2007-12-17 22:04:07 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-17 22:04:07 +0000 |
commit | 8d91abdfe3f3786e48a5b81b06a23bf162a9d2c0 (patch) | |
tree | e1686070db2bce48c4953e4bbef6a196640ae495 /src/openttd.cpp | |
parent | 89e49e5e95e8870be557291a9c9c348bb98e003a (diff) | |
download | openttd-8d91abdfe3f3786e48a5b81b06a23bf162a9d2c0.tar.xz |
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 2c0f1a0ec..af80a9dd1 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1291,7 +1291,7 @@ static bool InitializeWindowsAndCaches() WP(w, vp_d).dest_scrollpos_y = _saved_scrollpos_y; ViewPort *vp = w->viewport; - vp->zoom = (ZoomLevel)min(_saved_scrollpos_zoom, ZOOM_LVL_MAX); + vp->zoom = min(_saved_scrollpos_zoom, ZOOM_LVL_MAX); vp->virtual_width = ScaleByZoom(vp->width, vp->zoom); vp->virtual_height = ScaleByZoom(vp->height, vp->zoom); |