(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style

This commit is contained in:
skidd13
2007-11-19 18:38:10 +00:00
parent 9e385d2427
commit 98f66552be
39 changed files with 108 additions and 108 deletions

View File

@@ -104,10 +104,10 @@ static TileIndex CalcClosestStationTile(StationID station, TileIndex tile)
/* we are going the aim for the x coordinate of the closest corner
* but if we are between those coordinates, we will aim for our own x coordinate */
x = clamp(TileX(tile), minx, maxx);
x = Clamp(TileX(tile), minx, maxx);
/* same for y coordinate, see above comment */
y = clamp(TileY(tile), miny, maxy);
y = Clamp(TileY(tile), miny, maxy);
/* return the tile of our target coordinates */
return TileXY(x, y);