Viewport: Cache landscape pixels in map mode
Avoid invalidating landscape pixels for non-landscape updates (vehicles, overlays, etc.)
This commit is contained in:
@@ -1343,7 +1343,19 @@ static bool ViewportMapShowTunnelModeChanged(int32 p1)
|
||||
{
|
||||
extern void ViewportMapBuildTunnelCache();
|
||||
ViewportMapBuildTunnelCache();
|
||||
return RedrawScreen(p1);
|
||||
|
||||
extern void MarkAllViewportMapLandscapesDirty();
|
||||
MarkAllViewportMapLandscapesDirty();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool ViewportMapLandscapeModeChanged(int32 p1)
|
||||
{
|
||||
extern void MarkAllViewportMapLandscapesDirty();
|
||||
MarkAllViewportMapLandscapesDirty();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool UpdateLinkgraphColours(int32 p1)
|
||||
|
Reference in New Issue
Block a user