town_map.h
author celestar
Wed, 29 Mar 2006 16:30:26 +0000
changeset 3355 a653b8e47f27
parent 3319 7d04847e4689
child 3369 00c2ca209a89
permissions -rw-r--r--
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
/* $Id$ */

#include "town.h"


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

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