diff options
author | smatz <smatz@openttd.org> | 2009-06-26 13:44:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-26 13:44:14 +0000 |
commit | e6a165881cba611a4475db21068d64caa67796ea (patch) | |
tree | 2954a4e0bee44f0c00864e32211ceb6d4d87d122 /src/town_map.h | |
parent | 2987f021447d47a2678a8fdce81547e3d66a7217 (diff) | |
download | openttd-e6a165881cba611a4475db21068d64caa67796ea.tar.xz |
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
Diffstat (limited to 'src/town_map.h')
-rw-r--r-- | src/town_map.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/town_map.h b/src/town_map.h index e1007a030..66ff29cd0 100644 --- a/src/town_map.h +++ b/src/town_map.h @@ -5,8 +5,9 @@ #ifndef TOWN_MAP_H #define TOWN_MAP_H -#include "town.h" #include "tile_map.h" +#include "town_type.h" +#include "house.h" /** * Get the index of which town this house/street is attached to. @@ -34,16 +35,6 @@ static inline void SetTownIndex(TileIndex t, TownID index) } /** - * Gets the town associated with the house or road tile - * @param t the tile to get the town of - * @return the town - */ -static inline Town *GetTownByTile(TileIndex t) -{ - return Town::Get(GetTownIndex(t)); -} - -/** * Get the type of this house, which is an index into the house spec array * Since m4 is only a byte and we want to support 512 houses, we use the bit 6 * of m3 as an additional bit to house type. |