summaryrefslogtreecommitdiff
path: root/src/npf.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
commit8be526e4990ef8c7a742e6f3f67a42d0036750eb (patch)
tree7818a2f346fc9a85d84a2a844989ea1a90136b90 /src/npf.cpp
parent006acff1834d37ba4b1553ba324c255a6cc2382e (diff)
downloadopenttd-8be526e4990ef8c7a742e6f3f67a42d0036750eb.tar.xz
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
Diffstat (limited to 'src/npf.cpp')
-rw-r--r--src/npf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npf.cpp b/src/npf.cpp
index 06e527402..0afee79b0 100644
--- a/src/npf.cpp
+++ b/src/npf.cpp
@@ -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);