mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases
This commit is contained in:
parent
cd3c16d789
commit
96d156944f
@ -503,8 +503,8 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e)
|
|||||||
/* For autoroad we need to update the
|
/* For autoroad we need to update the
|
||||||
* direction of the road */
|
* direction of the road */
|
||||||
if (_thd.size.x > _thd.size.y || (_thd.size.x == _thd.size.y &&
|
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 */
|
/* Set dir = X */
|
||||||
_place_road_flag &= ~RF_DIR_Y;
|
_place_road_flag &= ~RF_DIR_Y;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user