Merge remote-tracking branch 'upstream/master'

This commit is contained in:
dP
2025-09-28 02:33:49 +05:00
926 changed files with 37901 additions and 27368 deletions
+2 -4
View File
@@ -62,9 +62,7 @@ private:
default:
NOT_REACHED();
}
TileArea ta;
this->wp->GetTileArea(&ta, type);
return ta.GetCenterTile();
return this->wp->GetTileArea(type).GetCenterTile();
}
public:
@@ -99,7 +97,7 @@ public:
this->flags.Set(WindowFlag::DisableVpScroll);
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_W_VIEWPORT);
nvp->InitializeViewport(this, this->GetCenterTile(), ScaleZoomGUI(ZOOM_LVL_VIEWPORT));
nvp->InitializeViewport(this, this->GetCenterTile(), ScaleZoomGUI(ZoomLevel::Viewport));
this->OnInvalidateData(0);
}