src/yapf/yapf_costrail.hpp
changeset 7709 84f19e59ab36
parent 7707 55106bc34d8f
child 7866 e19fda04e8d3
equal deleted inserted replaced
7708:595630b38fbf 7709:84f19e59ab36
   376 			tf_local.Init(v, &Yapf().m_perf_ts_cost);
   376 			tf_local.Init(v, &Yapf().m_perf_ts_cost);
   377 
   377 
   378 			if (!tf_local.Follow(cur.tile, cur.td)) {
   378 			if (!tf_local.Follow(cur.tile, cur.td)) {
   379 				assert(tf_local.m_err != TrackFollower::EC_NONE);
   379 				assert(tf_local.m_err != TrackFollower::EC_NONE);
   380 				/* Can't move to the next tile (EOL?). */
   380 				/* Can't move to the next tile (EOL?). */
   381 				end_segment_reason |= ESRB_DEAD_END;
   381 				if (tf_local.m_err == TrackFollower::EC_RAIL_TYPE) {
       
   382 					end_segment_reason |= ESRB_RAIL_TYPE;
       
   383 				} else {
       
   384 					end_segment_reason |= ESRB_DEAD_END;
       
   385 				}
   382 				break;
   386 				break;
   383 			}
   387 			}
   384 
   388 
   385 			/* Check if the next tile is not a choice. */
   389 			/* Check if the next tile is not a choice. */
   386 			if (KillFirstBit2x64(tf_local.m_new_td_bits) != 0) {
   390 			if (KillFirstBit2x64(tf_local.m_new_td_bits) != 0) {