(svn r4007) Add a function to make a farm field tile
This commit is contained in:
13
clear_map.h
13
clear_map.h
@@ -52,7 +52,18 @@ static inline void MakeClear(TileIndex t, ClearGround g, uint density)
|
||||
_m[t].m2 = 0;
|
||||
_m[t].m3 = 0;
|
||||
_m[t].m4 = 0 << 5 | 0 << 2;
|
||||
_m[t].m5 = 0 << 5 | g << 2 | density;
|
||||
SetClearGroundDensity(t, g, density);
|
||||
}
|
||||
|
||||
|
||||
static inline void MakeField(TileIndex t, uint field_type)
|
||||
{
|
||||
SetTileType(t, MP_CLEAR);
|
||||
SetTileOwner(t, OWNER_NONE);
|
||||
_m[t].m2 = 0;
|
||||
_m[t].m3 = field_type;
|
||||
_m[t].m4 = 0 << 5 | 0 << 2;
|
||||
SetClearGroundDensity(t, CL_FIELDS, 3);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user