Changeset - r22982:42289827c02c
[Not reviewed]
master
0 2 0
J0an Josep - 6 years ago 2018-07-27 20:02:16
juanjo.ng.83@gmail.com
Fix #6805: Clear some m8 bits when making some tiles.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/clear_map.h
Show inline comments
 
@@ -266,12 +266,13 @@ static inline void MakeClear(TileIndex t
 
	_m[t].m2 = 0;
 
	_m[t].m3 = 0;
 
	_m[t].m4 = 0 << 5 | 0 << 2;
 
	SetClearGroundDensity(t, g, density); // Sets m5
 
	_me[t].m6 = 0;
 
	_me[t].m7 = 0;
 
	_me[t].m8 = 0;
 
}
 

	
 

	
 
/**
 
 * Make a (farm) field tile.
 
 * @param t          the tile to make a farm field
 
@@ -286,12 +287,13 @@ static inline void MakeField(TileIndex t
 
	_m[t].m2 = industry;
 
	_m[t].m3 = field_type;
 
	_m[t].m4 = 0 << 5 | 0 << 2;
 
	SetClearGroundDensity(t, CLEAR_FIELDS, 3);
 
	SB(_me[t].m6, 2, 4, 0);
 
	_me[t].m7 = 0;
 
	_me[t].m8 = 0;
 
}
 

	
 
/**
 
 * Make a snow tile.
 
 * @param t the tile to make snowy
 
 * @param density The density of snowiness.
src/station_map.h
Show inline comments
 
@@ -539,12 +539,13 @@ static inline void MakeStation(TileIndex
 
	_m[t].m3 = 0;
 
	_m[t].m4 = 0;
 
	_m[t].m5 = section;
 
	SB(_me[t].m6, 2, 1, 0);
 
	SB(_me[t].m6, 3, 3, st);
 
	_me[t].m7 = 0;
 
	_me[t].m8 = 0;
 
}
 

	
 
/**
 
 * Make the given tile a rail station tile.
 
 * @param t the tile to make a rail station tile
 
 * @param o the owner of the station
0 comments (0 inline, 0 general)