1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 11:22:45 +01:00

Codechange: Define sequential operators for ZoomLevel.

This commit is contained in:
frosch
2025-05-03 20:03:39 +02:00
committed by frosch
parent bbfda39ac3
commit 7055ea0aee
10 changed files with 75 additions and 19 deletions

View File

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