Fix #7004: Mark linkgraph dirty to be rebuilt on next draw call. (#7265)

Previously the linkgraph was rebuilt before the viewport extents were finalized.
This commit is contained in:
2019-02-23 19:19:41 +00:00
committed by GitHub
parent f240f61fb2
commit 87ebfe1227
5 changed files with 17 additions and 9 deletions

View File

@@ -2070,7 +2070,7 @@ void RebuildViewportOverlay(Window *w)
if (w->viewport->overlay != NULL &&
w->viewport->overlay->GetCompanyMask() != 0 &&
w->viewport->overlay->GetCargoMask() != 0) {
w->viewport->overlay->RebuildCache();
w->viewport->overlay->SetDirty();
w->SetDirty();
}
}