summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-17 22:04:07 +0000
committersmatz <smatz@openttd.org>2007-12-17 22:04:07 +0000
commitbda9d4a23633c4ebb6ad18c29218deaf1a92d55d (patch)
treee1686070db2bce48c4953e4bbef6a196640ae495 /src/openttd.cpp
parent61dcdbf0e0bbbe231b7adbd0a82da8d9e16dbb88 (diff)
downloadopenttd-bda9d4a23633c4ebb6ad18c29218deaf1a92d55d.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.cpp2
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);