mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
15 lines
185 B
C
15 lines
185 B
C
/* $Id$ */
|
|
|
|
#include "town.h"
|
|
|
|
|
|
static inline uint GetTownIndex(TileIndex t)
|
|
{
|
|
return _m[t].m2;
|
|
}
|
|
|
|
static inline Town* GetTownByTile(TileIndex t)
|
|
{
|
|
return GetTown(GetTownIndex(t));
|
|
}
|