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 | 7c8474da13d295ddb6224fe66c41e4ba4ac0f050 (patch) | |
tree | b5902de710ecffe04af17e8f76703457edc2aeba /src/town.h | |
parent | f5c1365471301f70ad06813e8b7f7b1ed514b47c (diff) | |
download | openttd-7c8474da13d295ddb6224fe66c41e4ba4ac0f050.tar.xz |
(svn r15642) -Codechange: use a default parameter value in CalcClosestTownFromTile
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town.h b/src/town.h index 169161505..3588de76a 100644 --- a/src/town.h +++ b/src/town.h @@ -340,7 +340,7 @@ static inline Town *GetRandomTown() return GetTown(index); } -Town *CalcClosestTownFromTile(TileIndex tile, uint threshold); +Town *CalcClosestTownFromTile(TileIndex tile, uint threshold = UINT_MAX); #define FOR_ALL_TOWNS_FROM(t, start) for (t = GetTown(start); t != NULL; t = (t->index + 1U < GetTownPoolSize()) ? GetTown(t->index + 1U) : NULL) if (t->IsValid()) #define FOR_ALL_TOWNS(t) FOR_ALL_TOWNS_FROM(t, 0) |