(svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367)
This commit is contained in:
		@@ -301,7 +301,7 @@ static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType indu
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	for (dx = -3; dx <= 3; dx++) {
 | 
						for (dx = -3; dx <= 3; dx++) {
 | 
				
			||||||
		for (dy = -3; dy <= 3; dy++) {
 | 
							for (dy = -3; dy <= 3; dy++) {
 | 
				
			||||||
			cur_tile = tile + TileDiffXY(dx, dy);
 | 
								cur_tile = TILE_MASK(tile + TileDiffXY(dx, dy));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (IsTileType(cur_tile, type)) {
 | 
								if (IsTileType(cur_tile, type)) {
 | 
				
			||||||
				switch (type) {
 | 
									switch (type) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user