diff options
author | smatz <smatz@openttd.org> | 2009-03-08 01:20:11 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-03-08 01:20:11 +0000 |
commit | f5b24edc1e33a43c6bd725482b9150f22414f2f2 (patch) | |
tree | b5902de710ecffe04af17e8f76703457edc2aeba /src/town_cmd.cpp | |
parent | c71898461845992cf05f3e17e8ab871b2cc7f463 (diff) | |
download | openttd-f5b24edc1e33a43c6bd725482b9150f22414f2f2.tar.xz |
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 4432f17a3..a73af923c 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2590,7 +2590,7 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold) Town *town = GetTown(tid); assert(town->IsValid()); - assert(town == CalcClosestTownFromTile(tile, UINT_MAX)); + assert(town == CalcClosestTownFromTile(tile)); if (DistanceManhattan(tile, town->xy) >= threshold) town = NULL; |