# HG changeset patch # User peter1138 # Date 1137875657 0 # Node ID 7712ca7b29330a19d6e6eb645023cef6433467cd # Parent 0f3ea6f6ff17e557cb2b86b2f1804b0116e945e6 (svn r3413) - Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece. diff -r 0f3ea6f6ff17 -r 7712ca7b2933 road_cmd.c --- a/road_cmd.c Sat Jan 21 19:39:26 2006 +0000 +++ b/road_cmd.c Sat Jan 21 20:34:17 2006 +0000 @@ -428,7 +428,7 @@ 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 */