summaryrefslogtreecommitdiff
path: root/town_map.h
blob: 364d0047f6b5f2920adf0b6196e4976f07516550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* $Id$ */

#include "town.h"


static inline uint GetTownIndex(TileIndex t)
{
	return _m[t].m2;
}

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