1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Avoid expensive copies calling ViewportSurfaceSmoothenEdge

This commit is contained in:
ζeh Matt
2025-05-23 19:08:41 +03:00
parent d7b65d48ac
commit e40d56ed76

View File

@@ -380,7 +380,7 @@ static uint8_t ViewportSurfacePaintSetupGetRelativeSlope(const SurfaceElement& s
* rct2: 0x0065E890, 0x0065E946, 0x0065E9FC, 0x0065EAB2
*/
static void ViewportSurfaceSmoothenEdge(
PaintSession& session, enum edge_t edge, struct TileDescriptor self, struct TileDescriptor neighbour)
PaintSession& session, const edge_t edge, const TileDescriptor& self, const TileDescriptor& neighbour)
{
PROFILED_FUNCTION();