summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-17 07:35:10 +0000
committertron <tron@openttd.org>2005-06-17 07:35:10 +0000
commit663e45eb57b8f167e6511f1737c5e47170c675b0 (patch)
tree4b775218a1f7c0faeb90aacccea7a52723f3658b
parent13b7f222f39e63a5e4cf08117f49ec8f25dc8c82 (diff)
downloadopenttd-663e45eb57b8f167e6511f1737c5e47170c675b0.tar.xz
(svn r2452) Fix defect in r2448 which caused building tracks unexpectedly fail or succeed
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index fddc3a546..171c48205 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -95,7 +95,7 @@ static bool CheckTrackCombination(TileIndex tile, TrackBits to_build, uint flags
/* So, we have a tile with tracks on it (and possibly signals). Let's see
* what tracks first */
current = GetTrackBits(tile);
- future = current & to_build;
+ future = current | to_build;
/* Are we really building something new? */
if (current == future) {