1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Fix #12787: boostrap doesn't have main vindow (#12788)

This commit is contained in:
Loïc Guilloux
2024-06-15 22:39:15 +02:00
committed by GitHub
parent b991a399ef
commit d7137651f2

View File

@@ -2712,7 +2712,7 @@ const std::chrono::milliseconds TIME_BETWEEN_DOUBLE_CLICK(500); ///< Time betwee
static void ScrollMainViewport(int x, int y)
{
if (_game_mode != GM_MENU) {
if (_game_mode != GM_MENU && _game_mode != GM_BOOTSTRAP) {
Window *w = GetMainWindow();
w->viewport->dest_scrollpos_x += ScaleByZoom(x, w->viewport->zoom);
w->viewport->dest_scrollpos_y += ScaleByZoom(y, w->viewport->zoom);