src/yapf/follow_track.hpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
equal deleted inserted replaced
10991:d8811e327d12 10994:cd9968b6f96b
   262 				return false;
   262 				return false;
   263 			}
   263 			}
   264 		}
   264 		}
   265 
   265 
   266 		// tunnel holes and bridge ramps can be entered only from proper direction
   266 		// tunnel holes and bridge ramps can be entered only from proper direction
   267 		if (!IsWaterTT() && IsTileType(m_new_tile, MP_TUNNELBRIDGE)) {
   267 		if (IsTileType(m_new_tile, MP_TUNNELBRIDGE)) {
   268 			if (IsTunnel(m_new_tile)) {
   268 			if (IsTunnel(m_new_tile)) {
   269 				if (!m_is_tunnel) {
   269 				if (!m_is_tunnel) {
   270 					DiagDirection tunnel_enterdir = GetTunnelBridgeDirection(m_new_tile);
   270 					DiagDirection tunnel_enterdir = GetTunnelBridgeDirection(m_new_tile);
   271 					if (tunnel_enterdir != m_exitdir) {
   271 					if (tunnel_enterdir != m_exitdir) {
   272 						m_err = EC_NO_WAY;
   272 						m_err = EC_NO_WAY;