summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-11-18 20:10:07 +0000
committersmatz <smatz@openttd.org>2007-11-18 20:10:07 +0000
commit96d156944f34f46032124b3707b7d365322cb5a1 (patch)
treed34bef14790245cf7bfa347afead7d5b8e542377
parentcd3c16d7896608908d9e4066a95687ff331c5f83 (diff)
downloadopenttd-96d156944f34f46032124b3707b7d365322cb5a1.tar.xz
(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases
-rw-r--r--src/road_gui.cpp4
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 {