changeset 7213 | b3f3bc9fa6ab |
parent 7211 | ebabbe55f70e |
child 7370 | 41adc721b1fa |
--- a/src/yapf/yapf_costrail.hpp Mon Jul 09 18:53:43 2007 +0000 +++ b/src/yapf/yapf_costrail.hpp Mon Jul 09 18:57:12 2007 +0000 @@ -378,7 +378,11 @@ 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; + if (tf_local.m_err == TrackFollower::EC_RAIL_TYPE) { + end_segment_reason |= ESRB_RAIL_TYPE; + } else { + end_segment_reason |= ESRB_DEAD_END; + } break; }