diff options
author | rubidium <rubidium@openttd.org> | 2007-10-04 20:20:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-04 20:20:23 +0000 |
commit | 7788c04b78bf30d943be9d4de31f0efc68f688db (patch) | |
tree | 8aac65997d61c455ddf138977c1f5af8be8f58bb /src | |
parent | 07f8b91a1835936d705cc90b0de209854ffa3b85 (diff) | |
download | openttd-7788c04b78bf30d943be9d4de31f0efc68f688db.tar.xz |
(svn r11201) -Fix [FS#1283]: minor issue with building one way roads one tile long. Patch by SmatZ.
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index f63c20b20..2149b6270 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -653,7 +653,7 @@ CommandCost CmdBuildLongRoad(TileIndex end_tile, uint32 flags, uint32 p1, uint32 /* On the X-axis, we have to swap the initial bits, so they * will be interpreted correctly in the GTTS. Futhermore * when you just 'click' on one tile to build them. */ - if (HASBIT(p2, 2) == (start_tile == end_tile)) drd ^= DRD_BOTH; + if (HASBIT(p2, 2) == (start_tile == end_tile && HASBIT(p2, 0) == HASBIT(p2, 1))) drd ^= DRD_BOTH; /* No disallowed direction bits have to be toggled */ if (!HASBIT(p2, 5)) drd = DRD_NONE; |