mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-17 09:25:24 +01:00
(svn r21022) -Add (r21021): Missed recentering of a town gui viewport after a resize.
This commit is contained in:
parent
df7a32d364
commit
c4687de4e2
@ -526,6 +526,8 @@ public:
|
||||
if (this->viewport != NULL) {
|
||||
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(TVW_VIEWPORT);
|
||||
nvp->UpdateViewportCoordinates(this);
|
||||
|
||||
ScrollWindowToTile(this->town->xy, this, true); // Re-center viewport.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user