town_map.h
author Darkvater
Sun, 26 Mar 2006 22:41:56 +0000
changeset 3346 a0d4def7d934
parent 3319 16c0f06829a5
child 3369 cab209754317
permissions -rw-r--r--
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
/* $Id$ */

#include "town.h"


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

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