Do not mark map-mode viewports dirty when changing rail ground type

This commit is contained in:
Jonathan G Rennison
2020-02-20 00:38:01 +00:00
parent c13ff2a1d3
commit 08af3b38d9

View File

@@ -1017,7 +1017,7 @@ bool FloodHalftile(TileIndex t)
if (IsSteepSlope(tileh) || IsSlopeWithThreeCornersRaised(tileh)) {
flooded = true;
SetRailGroundType(t, RAIL_GROUND_WATER);
MarkTileDirtyByTile(t);
MarkTileDirtyByTile(t, ZOOM_LVL_DRAW_MAP);
}
}
}
@@ -3327,7 +3327,7 @@ static void TileLoop_Track(TileIndex tile)
set_ground:
if (old_ground != new_ground) {
SetRailGroundType(tile, new_ground);
MarkTileDirtyByTile(tile);
MarkTileDirtyByTile(tile, ZOOM_LVL_DRAW_MAP);
}
}