mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r19813) -Fix (r19807): initialising viewports kinda failed
This commit is contained in:
parent
398418b8fa
commit
a2d6961ab3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user