From a10013dd00ee0e78bba7804feddc81d84ba57d69 Mon Sep 17 00:00:00 2001 From: TechGeekNZ Date: Mon, 29 Jun 2020 13:38:29 +1200 Subject: Codechange: Spell 'Viewport' consistently Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent. --- src/saveload/misc_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp index 7ef4e3018..f17883eb4 100644 --- a/src/saveload/misc_sl.cpp +++ b/src/saveload/misc_sl.cpp @@ -50,7 +50,7 @@ void ResetViewportAfterLoadGame() w->viewport->dest_scrollpos_x = _saved_scrollpos_x; w->viewport->dest_scrollpos_y = _saved_scrollpos_y; - ViewPort *vp = w->viewport; + Viewport *vp = w->viewport; 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