Changeset - r7885:8d6d8dd86a89
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-11-15 17:51:36
rubidium@openttd.org
(svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -726,13 +726,13 @@ no_slope:
 
					return !IsNeighborRoadTile(tile, dir, 2);
 
			}
 
		}
 

	
 
		/* If the tile is not a slope in the right direction, then
 
		 * maybe terraform some. */
 
		desired_slope = (dir == DIAGDIR_NW || dir == DIAGDIR_SE) ? SLOPE_NE : SLOPE_NW;
 
		desired_slope = (dir == DIAGDIR_NW || dir == DIAGDIR_SE) ? SLOPE_NW : SLOPE_NE;
 
		if (desired_slope != cur_slope && ComplementSlope(desired_slope) != cur_slope) {
 
			uint32 r = Random();
 

	
 
			if (CHANCE16I(1, 8, r)) {
 
				CommandCost res = CMD_ERROR;
 
				if (!_generating_world && CHANCE16I(1, 10, r >> 4)) {
0 comments (0 inline, 0 general)