mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
17 lines
247 B
C
17 lines
247 B
C
/* $Id$ */
|
|
|
|
#include "industry.h"
|
|
#include "macros.h"
|
|
#include "tile.h"
|
|
|
|
|
|
static inline uint GetIndustryIndex(TileIndex t)
|
|
{
|
|
return _m[t].m2;
|
|
}
|
|
|
|
static inline Industry* GetIndustryByTile(TileIndex t)
|
|
{
|
|
return GetIndustry(GetIndustryIndex(t));
|
|
}
|