From 96d156944f34f46032124b3707b7d365322cb5a1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 18 Nov 2007 20:10:07 +0000 Subject: (svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases --- src/road_gui.cpp | 4 ++-- 1 file 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 { -- cgit v1.2.3-70-g09d2