(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile

This commit is contained in:
smatz
2009-03-08 01:20:11 +00:00
parent f5c1365471
commit 7c8474da13
4 changed files with 9 additions and 9 deletions

View File

@@ -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;