diff options
Diffstat (limited to 'town_map.h')
-rw-r--r-- | town_map.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/town_map.h b/town_map.h new file mode 100644 index 000000000..364d0047f --- /dev/null +++ b/town_map.h @@ -0,0 +1,14 @@ +/* $Id$ */ + +#include "town.h" + + +static inline uint GetTownIndex(TileIndex t) +{ + return _m[t].m2; +} + +static inline Town* GetTownByTile(TileIndex t) +{ + return GetTown(GetTownIndex(t)); +} |