Changeset - r15251:af04d0d87d00
[Not reviewed]
master
0 1 0
michi_cc - 14 years ago 2010-05-26 05:24:58
michi_cc@openttd.org
(svn r19896) -Fix [FS#3803] (r18648): [YAPP] Inform the pathfinder as well about the fact that the backside of an one-way path signal can be a safe waiting point.
1 file changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/pathfinder/yapf/yapf_costrail.hpp
Show inline comments
 
@@ -507,9 +507,12 @@ no_entry_cost: // jump here at the begin
 
			/* Gather the next tile/trackdir/tile_type/rail_type. */
 
			TILE next(tf_local.m_new_tile, (Trackdir)FindFirstBit2x64(tf_local.m_new_td_bits));
 

	
 
			if (TrackFollower::DoTrackMasking() && HasPbsSignalOnTrackdir(next.tile, next.td)) {
 
				/* Possible safe tile. */
 
				end_segment_reason |= ESRB_SAFE_TILE;
 
			if (TrackFollower::DoTrackMasking() && IsTileType(next.tile, MP_RAILWAY)) {
 
				if ((HasSignalOnTrackdir(next.tile, next.td) && IsPbsSignal(GetSignalType(next.tile, TrackdirToTrack(next.td)))) ||
 
						(HasSignalOnTrackdir(next.tile, ReverseTrackdir(next.td)) && GetSignalType(next.tile, TrackdirToTrack(next.td)) == SIGTYPE_PBS_ONEWAY)) {
 
					/* Possible safe tile. */
 
					end_segment_reason |= ESRB_SAFE_TILE;
 
				}
 
			}
 

	
 
			/* Check the next tile for the rail type. */
0 comments (0 inline, 0 general)