bridge_cmd.c
branchcustombridgeheads
changeset 5607 5169e3e15ce9
parent 5606 a8e391b7b10a
child 5608 a0768f524071
--- a/bridge_cmd.c	Sat Dec 30 17:09:30 2006 +0000
+++ b/bridge_cmd.c	Sat Dec 30 17:16:07 2006 +0000
@@ -968,7 +968,8 @@
 	}
 
 	dir = GetBridgeRampDirection(tile);
-	if (DirToDiagDir(v->direction) == dir || IsTileType(tile, MP_RAILWAY_BRIDGE)) {
+	if (DirToDiagDir(v->direction) == dir ||
+			(IsTileType(tile, MP_RAILWAY_BRIDGE) && DirToDiagDir(v->direction) != ReverseDiagDir(dir))) {
 		switch (dir) {
 			default: NOT_REACHED();
 			case DIAGDIR_NE: if ((x & 0xF) != 0)             return 0; break;