mirror of https://github.com/OpenTTD/OpenTTD
parent
b991a399ef
commit
d7137651f2
|
@ -2712,7 +2712,7 @@ const std::chrono::milliseconds TIME_BETWEEN_DOUBLE_CLICK(500); ///< Time betwee
|
||||||
|
|
||||||
static void ScrollMainViewport(int x, int y)
|
static void ScrollMainViewport(int x, int y)
|
||||||
{
|
{
|
||||||
if (_game_mode != GM_MENU) {
|
if (_game_mode != GM_MENU && _game_mode != GM_BOOTSTRAP) {
|
||||||
Window *w = GetMainWindow();
|
Window *w = GetMainWindow();
|
||||||
w->viewport->dest_scrollpos_x += ScaleByZoom(x, w->viewport->zoom);
|
w->viewport->dest_scrollpos_x += ScaleByZoom(x, w->viewport->zoom);
|
||||||
w->viewport->dest_scrollpos_y += ScaleByZoom(y, w->viewport->zoom);
|
w->viewport->dest_scrollpos_y += ScaleByZoom(y, w->viewport->zoom);
|
||||||
|
|
Loading…
Reference in New Issue