diff options
author | frosch <frosch@openttd.org> | 2015-04-27 21:40:46 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-04-27 21:40:46 +0000 |
commit | 5992f4fa1b4ae47cd0245ea74e0e06c3c4dceece (patch) | |
tree | 2a893ab902ae409d9adc5f4a3f32bb96082f91ad /src | |
parent | eb25d9e275a8fe165f52f669696d5be15efd748d (diff) | |
download | openttd-5992f4fa1b4ae47cd0245ea74e0e06c3c4dceece.tar.xz |
(svn r27259) -Fix (r27244): Incorrect merge. (_dp_)
Diffstat (limited to 'src')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 91df84bdb..642d95919 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1331,7 +1331,7 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir) /* Check whether a road connection already exists, * and it leads somewhere else. */ RoadBits back_rb = DiagDirToRoadBits(ReverseDiagDir(dir)); - return (target_rb & back_rb) != 0 && (target_rb & back_rb) != back_rb; + return (target_rb & back_rb) != 0 && (target_rb & ~back_rb) != 0; } } |