blob: 63c2895038fe7892883ba3f52de0542b73ee04c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* $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));
}
static inline void MakeIndustry(TileIndex t, uint index, uint gfx)
{
SetTileType(t, MP_INDUSTRY);
_m[t].m1 = 0;
_m[t].m2 = index;
_m[t].m3 = 0;
_m[t].m4 = 0;
_m[t].m5 = gfx;
}
|