1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-24 05:32:59 +01:00
Files
OpenTTD/town_map.h

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));
}