summaryrefslogtreecommitdiff
path: root/town_map.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-30 15:06:49 +0000
committercelestar <celestar@openttd.org>2006-03-30 15:06:49 +0000
commit0dc5d10de2c01a4fdf965c85f48ff54427dea89d (patch)
treeb4f87a4c2b8239a0a7969758fba389914e01904a /town_map.h
parent3e2edd63c9e753a2fa8145dd360f34bc95ee9cf0 (diff)
downloadopenttd-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.h5
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)
{