(svn r4179) -Codechange: Add and make use of an accessor that obtains the building type

This commit is contained in:
celestar
2006-03-30 15:06:49 +00:00
parent e2e633665e
commit 94ca804e4f
2 changed files with 14 additions and 9 deletions

View File

@@ -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)
{