Codechange: Set ZoomLevel's base type to byte instead of using ZoomLevelByte

This commit is contained in:
Charles Pigott
2019-04-21 20:15:55 +01:00
committed by PeterN
parent aa220b2375
commit 96a4787710
8 changed files with 14 additions and 20 deletions

View File

@@ -2834,7 +2834,7 @@ bool AfterLoadGame()
if (IsSavegameVersionBefore(SLV_165)) {
/* Adjust zoom level to account for new levels */
_saved_scrollpos_zoom = _saved_scrollpos_zoom + ZOOM_LVL_SHIFT;
_saved_scrollpos_zoom = static_cast<ZoomLevel>(_saved_scrollpos_zoom + ZOOM_LVL_SHIFT);
_saved_scrollpos_x *= ZOOM_LVL_BASE;
_saved_scrollpos_y *= ZOOM_LVL_BASE;
}