(svn r21022) -Add (r21021): Missed recentering of a town gui viewport after a resize.
This commit is contained in:
@@ -526,6 +526,8 @@ public:
|
|||||||
if (this->viewport != NULL) {
|
if (this->viewport != NULL) {
|
||||||
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(TVW_VIEWPORT);
|
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(TVW_VIEWPORT);
|
||||||
nvp->UpdateViewportCoordinates(this);
|
nvp->UpdateViewportCoordinates(this);
|
||||||
|
|
||||||
|
ScrollWindowToTile(this->town->xy, this, true); // Re-center viewport.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user