diff options
author | smatz <smatz@openttd.org> | 2007-11-18 20:10:07 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-11-18 20:10:07 +0000 |
commit | a4d63f5b5b23392390816fc894f19c6779399d34 (patch) | |
tree | d34bef14790245cf7bfa347afead7d5b8e542377 /src | |
parent | 001179990dc7259ffa8fa31222066f4435d4fdac (diff) | |
download | openttd-a4d63f5b5b23392390816fc894f19c6779399d34.tar.xz |
(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases
Diffstat (limited to 'src')
-rw-r--r-- | src/road_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index e5d68cb0b..5d67fb50a 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -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 { |