File diff r15761:680dbdd50e09 → r15762:7fbf9fe78040
src/clear_map.h
Show inline comments
 
@@ -274,12 +274,13 @@ static inline void MakeClear(TileIndex t
 
{
 
	/* If this is a non-bridgeable tile, clear the bridge bits while the rest
 
	 * of the tile information is still here. */
 
	if (!MayHaveBridgeAbove(t)) SB(_m[t].m6, 6, 2, 0);
 

	
 
	SetTileType(t, MP_CLEAR);
 
	_m[t].m1 = 0;
 
	SetTileOwner(t, OWNER_NONE);
 
	_m[t].m2 = 0;
 
	_m[t].m3 = 0;
 
	_m[t].m4 = 0 << 5 | 0 << 2;
 
	SetClearGroundDensity(t, g, density); // Sets m5
 
	SB(_m[t].m6, 2, 4, 0); // Other bits are "tropic zone" and "bridge above"
 
@@ -293,12 +294,13 @@ static inline void MakeClear(TileIndex t
 
 * @param field_type the 'growth' level of the field
 
 * @param industry   the industry this tile belongs to
 
 */
 
static inline void MakeField(TileIndex t, uint field_type, IndustryID industry)
 
{
 
	SetTileType(t, MP_CLEAR);
 
	_m[t].m1 = 0;
 
	SetTileOwner(t, OWNER_NONE);
 
	_m[t].m2 = industry;
 
	_m[t].m3 = field_type;
 
	_m[t].m4 = 0 << 5 | 0 << 2;
 
	SetClearGroundDensity(t, CLEAR_FIELDS, 3);
 
	SB(_m[t].m6, 2, 4, 0);