diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 08:56:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 08:56:01 +0000 |
commit | 3118292b1461fb573964008da745326d53d246ab (patch) | |
tree | 76493f3d4146dffae10f38de9e47e98e24fd9fb2 /src/main_gui.cpp | |
parent | d568a4258bedec709501cf048bf0015030dcd20d (diff) | |
download | openttd-3118292b1461fb573964008da745326d53d246ab.tar.xz |
(svn r19807) -Codechange: instead of having an unnamed enum and passing it as an int, name the enum and pass that
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 47156f690..6a5781897 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -128,7 +128,7 @@ void ShowNetworkGiveMoneyWindow(CompanyID company) /* Zooms a viewport in a window in or out * No button handling or what so ever */ -bool DoZoomInOutWindow(int how, Window *w) +bool DoZoomInOutWindow(ZoomStateChange how, Window *w) { ViewPort *vp; @@ -136,6 +136,7 @@ bool DoZoomInOutWindow(int how, Window *w) vp = w->viewport; switch (how) { + case ZOOM_NONE: NOT_REACHED(); case ZOOM_IN: if (vp->zoom == ZOOM_LVL_MIN) return false; vp->zoom = (ZoomLevel)((int)vp->zoom - 1); |