Changeset - r7913:023d979c8cb1
[Not reviewed]
master
0 1 0
smatz - 17 years ago 2007-11-18 20:10:07
smatz@openttd.org
(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/road_gui.cpp
Show inline comments
 
@@ -503,8 +503,8 @@ static void BuildRoadToolbWndProc(Window
 
				/* For autoroad we need to update the
 
				 * direction of the road */
 
				if (_thd.size.x > _thd.size.y || (_thd.size.x == _thd.size.y &&
 
						(_tile_fract_coords.x < _tile_fract_coords.y && (_tile_fract_coords.x + _tile_fract_coords.y) < 16) ||
 
						(_tile_fract_coords.x > _tile_fract_coords.y && (_tile_fract_coords.x + _tile_fract_coords.y) > 16) )) {
 
						( (_tile_fract_coords.x < _tile_fract_coords.y && (_tile_fract_coords.x + _tile_fract_coords.y) < 16) ||
 
						  (_tile_fract_coords.x > _tile_fract_coords.y && (_tile_fract_coords.x + _tile_fract_coords.y) > 16) ))) {
 
					/* Set dir = X */
 
					_place_road_flag &= ~RF_DIR_Y;
 
				} else {
0 comments (0 inline, 0 general)