(svn r21022) -Add (r21021): Missed recentering of a town gui viewport after a resize.

This commit is contained in:
alberth
2010-10-23 21:14:35 +00:00
parent 42f6245a31
commit 85a5fcf58a

View File

@@ -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.
} }
} }