# HG changeset patch # User celestar # Date 1167395606 0 # Node ID fdbe3e553294c7bbc9d83630303d6aff33eadca2 # Parent 049ed44869724c52acd821156aebfdd412543be4 (svn r7614) [cbh] - Codechange: Moved the DiagDirection of the bridge head from m5 bits 0..1 to m4 bits 5..6 diff -r 049ed4486972 -r fdbe3e553294 bridge_map.h --- a/bridge_map.h Fri Dec 29 12:18:43 2006 +0000 +++ b/bridge_map.h Fri Dec 29 12:33:26 2006 +0000 @@ -58,7 +58,7 @@ static inline DiagDirection GetBridgeRampDirection(TileIndex t) { assert(IsBridgeTile(t)); - return (DiagDirection)GB(_m[t].m5, 0, 2); + return (DiagDirection)GB(_m[t].m4, 5, 2); } diff -r 049ed4486972 -r fdbe3e553294 openttd.c --- a/openttd.c Fri Dec 29 12:18:43 2006 +0000 +++ b/openttd.c Fri Dec 29 12:33:26 2006 +0000 @@ -1362,6 +1362,8 @@ } CLRBIT(_m[tile].m5, 7); SB(_m[tile].m5, 2, 2, 0); + SB(_m[tile].m4, 5, 2, GB(_m[tile].m5, 0, 2)); + SB(_m[tile].m5, 0, 2, 0); } else { /* Tunnel */ SetTileType(tile, MP_TUNNEL); }