mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-07 06:39:08 +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));
|
|
}
|