Changeset - r10956:5bfc69fc5e37
[Not reviewed]
master
0 1 0
Yexo - 15 years ago 2009-01-29 16:14:46
yexo@openttd.org
(svn r15295) -Fix [FS#2591] (r15190): Towns tried to build roads outside the map.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/road.cpp
Show inline comments
 
@@ -26,6 +26,7 @@ bool IsPossibleCrossing(const TileIndex 
 

	
 
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
 
{
 
	if (!IsValidTile(tile)) return ROAD_NONE;
 
	for (DiagDirection dir = DIAGDIR_BEGIN; dir < DIAGDIR_END; dir++) {
 
		const TileIndex neighbor_tile = TileAddByDiagDir(tile, dir);
 

	
0 comments (0 inline, 0 general)