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

pull/155/head
alberth 14 years ago
parent 42f6245a31
commit 85a5fcf58a

@ -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…
Cancel
Save