(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases

This commit is contained in:
smatz 2007-11-18 20:10:07 +00:00
parent cd3c16d789
commit 96d156944f
1 changed files with 2 additions and 2 deletions

View File

@ -503,8 +503,8 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e)
/* 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 {