mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r18384) -Fix (r18351): attempt to 'work around' MSVC's IMO stupid warning
This commit is contained in:
parent
66da3cbb20
commit
429f3993f8
|
@ -52,7 +52,7 @@ void ResetViewportAfterLoadGame()
|
|||
w->viewport->dest_scrollpos_y = _saved_scrollpos_y;
|
||||
|
||||
ViewPort *vp = w->viewport;
|
||||
vp->zoom = min<ZoomLevel>(_saved_scrollpos_zoom, ZOOM_LVL_MAX);
|
||||
vp->zoom = (ZoomLevel)min(_saved_scrollpos_zoom, ZOOM_LVL_MAX);
|
||||
vp->virtual_width = ScaleByZoom(vp->width, vp->zoom);
|
||||
vp->virtual_height = ScaleByZoom(vp->height, vp->zoom);
|
||||
|
||||
|
|
Loading…
Reference in New Issue