equal
deleted
inserted
replaced
33 |
33 |
34 |
34 |
35 static inline TreeType GetTreeType(TileIndex t) |
35 static inline TreeType GetTreeType(TileIndex t) |
36 { |
36 { |
37 assert(IsTileType(t, MP_TREES)); |
37 assert(IsTileType(t, MP_TREES)); |
38 return _m[t].m3; |
38 return (TreeType)_m[t].m3; |
39 } |
39 } |
40 |
40 |
41 |
41 |
42 static inline TreeGround GetTreeGround(TileIndex t) |
42 static inline TreeGround GetTreeGround(TileIndex t) |
43 { |
43 { |
44 assert(IsTileType(t, MP_TREES)); |
44 assert(IsTileType(t, MP_TREES)); |
45 return GB(_m[t].m2, 4, 2); |
45 return (TreeGround)GB(_m[t].m2, 4, 2); |
46 } |
46 } |
47 |
47 |
48 |
48 |
49 static inline uint GetTreeDensity(TileIndex t) |
49 static inline uint GetTreeDensity(TileIndex t) |
50 { |
50 { |