summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-21 20:34:17 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-21 20:34:17 +0000
commitd22e8c636d98187b854f3de3a61a3c2ed5f11105 (patch)
treec956cf1a144540399f7bc85d8f1417ddefff3f50 /road_cmd.c
parent935ab76f0f814a1789fb0db5f6a127dd7632f262 (diff)
downloadopenttd-d22e8c636d98187b854f3de3a61a3c2ed5f11105.tar.xz
(svn r3413) - Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece.
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index e81e59177..cad33f991 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -428,7 +428,7 @@ int32 CmdBuildRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
goto do_clear;
/* only allow roads pertendicular to bridge */
- if ((pieces & 5U) == (ti.map5 & 0x01U))
+ if (((pieces & 5U) != 0) == ((ti.map5 & 0x01U) != 0))
goto do_clear;
/* check if clear land under bridge */