From d22e8c636d98187b854f3de3a61a3c2ed5f11105 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 21 Jan 2006 20:34:17 +0000 Subject: (svn r3413) - Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece. --- road_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'road_cmd.c') 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 */ -- cgit v1.2.3-70-g09d2