summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 10:00:51 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 10:00:51 +0000
commita2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (patch)
tree1a93c2c94474ce37199e37f83be0254b2732a69a
parent398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (diff)
downloadopenttd-a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2.tar.xz
(svn r19813) -Fix (r19807): initialising viewports kinda failed
-rw-r--r--src/main_gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 6a5781897..dc118abf5 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -136,7 +136,10 @@ bool DoZoomInOutWindow(ZoomStateChange how, Window *w)
vp = w->viewport;
switch (how) {
- case ZOOM_NONE: NOT_REACHED();
+ case ZOOM_NONE:
+ /* On initialisation of the viewport we don't do anything. */
+ break;
+
case ZOOM_IN:
if (vp->zoom == ZOOM_LVL_MIN) return false;
vp->zoom = (ZoomLevel)((int)vp->zoom - 1);