From 429f3993f8dc380780a23a6f46420797a9a8a11c Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 18:14:34 +0000 Subject: (svn r18384) -Fix (r18351): attempt to 'work around' MSVC's IMO stupid warning --- src/saveload/misc_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp index b6a4c5b9b..06775d4e9 100644 --- a/src/saveload/misc_sl.cpp +++ b/src/saveload/misc_sl.cpp @@ -52,7 +52,7 @@ void ResetViewportAfterLoadGame() w->viewport->dest_scrollpos_y = _saved_scrollpos_y; ViewPort *vp = w->viewport; - vp->zoom = min(_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); -- cgit v1.2.3-70-g09d2