src/pathfind.cpp
branchcpp_gui
changeset 6308 646711c5feaa
parent 6307 f40e88cff863
child 7179 3e123c2b7c93
equal deleted inserted replaced
6307:f40e88cff863 6308:646711c5feaa
   819 				bits = TRACK_BIT_NONE;
   819 				bits = TRACK_BIT_NONE;
   820 				break;
   820 				break;
   821 			}
   821 			}
   822 
   822 
   823 			/* If we reach here, the tile has exactly one track, and this
   823 			/* If we reach here, the tile has exactly one track, and this
   824 			 track is reachable => Rail segment continues */
   824 			 track is reachable = > Rail segment continues */
   825 
   825 
   826 			track = _new_trackdir[FIND_FIRST_BIT(bits)][direction];
   826 			track = _new_trackdir[FIND_FIRST_BIT(bits)][direction];
   827 			assert(track != INVALID_TRACKDIR);
   827 			assert(track != INVALID_TRACKDIR);
   828 
   828 
   829 			si.cur_length += _length_of_track[track];
   829 			si.cur_length += _length_of_track[track];