diff options
author | celestar <celestar@openttd.org> | 2006-03-30 15:06:49 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-30 15:06:49 +0000 |
commit | 0dc5d10de2c01a4fdf965c85f48ff54427dea89d (patch) | |
tree | b4f87a4c2b8239a0a7969758fba389914e01904a /town_map.h | |
parent | 3e2edd63c9e753a2fa8145dd360f34bc95ee9cf0 (diff) | |
download | openttd-0dc5d10de2c01a4fdf965c85f48ff54427dea89d.tar.xz |
(svn r4179) -Codechange: Add and make use of an accessor that obtains the building type
Diffstat (limited to 'town_map.h')
-rw-r--r-- | town_map.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/town_map.h b/town_map.h index 98b97007d..48d3ad94b 100644 --- a/town_map.h +++ b/town_map.h @@ -2,6 +2,11 @@ #include "town.h" +static inline int GetHouseType(TileIndex t) +{ + assert(IsTileType(t, MP_HOUSE)); + return _m[t].m4; +} static inline uint GetTownIndex(TileIndex t) { |