mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11201) -Fix [FS#1283]: minor issue with building one way roads one tile long. Patch by SmatZ.
This commit is contained in:
parent
ca46e547de
commit
f54a823129
@ -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
|
/* On the X-axis, we have to swap the initial bits, so they
|
||||||
* will be interpreted correctly in the GTTS. Futhermore
|
* will be interpreted correctly in the GTTS. Futhermore
|
||||||
* when you just 'click' on one tile to build them. */
|
* 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 */
|
/* No disallowed direction bits have to be toggled */
|
||||||
if (!HASBIT(p2, 5)) drd = DRD_NONE;
|
if (!HASBIT(p2, 5)) drd = DRD_NONE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user