(svn r10489) -Codechange [YAPF]: FollowTrack_t now has new data member - m_err. It indicates the reason why the given track/trackdir can't be followed when method CFollowTrackT<>::Follow() returned false.
This commit is contained in:
@@ -376,6 +376,7 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th
|
||||
tf_local.Init(v, &Yapf().m_perf_ts_cost);
|
||||
|
||||
if (!tf_local.Follow(cur.tile, cur.td)) {
|
||||
assert(tf_local.m_err != TrackFollower::EC_NONE);
|
||||
/* Can't move to the next tile (EOL?). */
|
||||
end_segment_reason |= ESRB_DEAD_END;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user