Fix performance regression rendering vehicle route overlays.

Performance issue was triggered when orders were modified whilst
the route was displayed and the game was in multiplayer mode.
This commit is contained in:
Jonathan G Rennison
2015-11-20 23:13:22 +00:00
parent f770dd1ed9
commit e91b84753b

View File

@@ -1751,6 +1751,7 @@ static void ViewportMapDrawVehicleRoute(const ViewPort *vp)
if (_vp_route_paths_last_mark_dirty != drawn_paths) {
// make sure we're not drawing a partial path
MarkRoutePathsDirty(drawn_paths);
_vp_route_paths_last_mark_dirty = drawn_paths;
DEBUG(misc, 1, "ViewportMapDrawVehicleRoute: redrawing dirty paths 3");
}