Codechange: Use references for non-optional in/out values of slope functions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user