mirror of https://github.com/OpenTTD/OpenTTD
(svn r2452) Fix defect in r2448 which caused building tracks unexpectedly fail or succeed
parent
c81de3e1e9
commit
8c6fa13faa
|
@ -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
|
/* So, we have a tile with tracks on it (and possibly signals). Let's see
|
||||||
* what tracks first */
|
* what tracks first */
|
||||||
current = GetTrackBits(tile);
|
current = GetTrackBits(tile);
|
||||||
future = current & to_build;
|
future = current | to_build;
|
||||||
|
|
||||||
/* Are we really building something new? */
|
/* Are we really building something new? */
|
||||||
if (current == future) {
|
if (current == future) {
|
||||||
|
|
Loading…
Reference in New Issue