town_map.h
author celestar
Thu, 30 Mar 2006 12:00:35 +0000
changeset 3374 faff80c38bcc
parent 3369 cab209754317
child 3377 608cf1405409
permissions -rw-r--r--
(svn r4173) -Codechange: Use IsClearWaterTile for buoy construction
/* $Id$ */

#include "town.h"


static inline uint GetTownIndex(TileIndex t)
{
	assert(IsTileType(t, MP_HOUSE) || IsTileType(t, MP_STREET)); // XXX incomplete
	return _m[t].m2;
}

static inline Town* GetTownByTile(TileIndex t)
{
	return GetTown(GetTownIndex(t));
}