(svn r3413) - Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece.
This commit is contained in:
		@@ -428,7 +428,7 @@ int32 CmdBuildRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
 | 
				
			|||||||
				goto do_clear;
 | 
									goto do_clear;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* only allow roads pertendicular to bridge */
 | 
							/* only allow roads pertendicular to bridge */
 | 
				
			||||||
		if ((pieces & 5U) == (ti.map5 & 0x01U))
 | 
							if (((pieces & 5U) != 0) == ((ti.map5 & 0x01U) != 0))
 | 
				
			||||||
				goto do_clear;
 | 
									goto do_clear;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* check if clear land under bridge */
 | 
							/* check if clear land under bridge */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user