Codechange: Use references for non-optional in/out values of slope functions

This commit is contained in:
Michael Lutz
2024-03-08 17:31:20 +01:00
parent 8dda387f82
commit 8b9f59d320
8 changed files with 52 additions and 52 deletions

View File

@@ -73,5 +73,5 @@ int GetBridgeHeight(TileIndex t)
Foundation f = GetBridgeFoundation(tileh, DiagDirToAxis(GetTunnelBridgeDirection(t)));
/* one height level extra for the ramp */
return h + 1 + ApplyFoundationToSlope(f, &tileh);
return h + 1 + ApplyFoundationToSlope(f, tileh);
}