summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/town_cmd.cpp2
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;
}
}