Changeset - r6919:aea636af9c8e
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-06-17 01:01:15
belugas@openttd.org
(svn r10172) -Fix(r10127): Wrong evaluation order on variable 0x41 for industry tile.
The industry's xy (northernmost tile) should be checked against the relative tile, not the other way around.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -51,8 +51,8 @@ static uint32 GetNearbyIndustryTileInfor
 
 */
 
static uint32 GetRelativePosition(TileIndex tile, TileIndex ind_tile)
 
{
 
	byte x = TileX(ind_tile) - TileX(tile);
 
	byte y = TileY(ind_tile) - TileY(tile);
 
	byte x = TileX(tile) - TileX(ind_tile);
 
	byte y = TileY(tile) - TileY(ind_tile);
 

	
 
	return ((y & 0xF) << 20) | ((x & 0xF) << 16) | (y << 8) | x;
 
}
0 comments (0 inline, 0 general)