summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-09 16:21:03 +0000
committerrubidium <rubidium@openttd.org>2007-02-09 16:21:03 +0000
commit396f905b6e731c3a9b70f08281d3fe1cfb226ae5 (patch)
tree1ce756be5536229554315f3e1708c522249e81d7 /src/town.h
parent0cfd58f21a8298f730f5d8506a93afbdc50ca2c9 (diff)
downloadopenttd-396f905b6e731c3a9b70f08281d3fe1cfb226ae5.tar.xz
(svn r8651) -Codechange: group the functions related to getting and setting the town index and move one function that is not related to the map array out of town_map.h.
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index 3cf060f69..b59bf505a 100644
--- a/src/town.h
+++ b/src/town.h
@@ -218,6 +218,8 @@ static inline void DeleteTown(Town *t)
t->xy = 0;
}
+Town* CalcClosestTownFromTile(TileIndex tile, uint threshold);
+
#define FOR_ALL_TOWNS_FROM(t, start) for (t = GetTown(start); t != NULL; t = (t->index + 1U < GetTownPoolSize()) ? GetTown(t->index + 1U) : NULL) if (IsValidTown(t))
#define FOR_ALL_TOWNS(t) FOR_ALL_TOWNS_FROM(t, 0)