mirror of https://github.com/OpenTTD/OpenTTD.git
(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