diff options
author | TechGeekNZ <git@tech.geek.nz> | 2020-06-29 13:38:29 +1200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-07-27 17:31:29 +0100 |
commit | a10013dd00ee0e78bba7804feddc81d84ba57d69 (patch) | |
tree | 8875568d7e0e1dff52916558f93462badb585295 /src/saveload | |
parent | 7d66540af55fe9c28790cfe9d839bfbf8afb91dc (diff) | |
download | openttd-a10013dd00ee0e78bba7804feddc81d84ba57d69.tar.xz |
Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/misc_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |