Changeset - r3910:b144c53f5e2a
[Not reviewed]
master
0 2 0
KUDr - 18 years ago 2006-05-28 19:01:29
kudr@openttd.org
(svn r5006) Added comments where doxygen generated warnings to test if it can help.
2 files changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
yapf/yapf_common.cpp
Show inline comments
 
/* $Id$ */
 

	
 
#include "../stdafx.h"
 

	
 
#include "yapf.hpp"
 
#include "follow_track.hpp"
 
#include "yapf_node_rail.hpp"
 
#include "yapf_costbase.hpp"
 
#include "yapf_costcache.hpp"
 

	
 
/** translate tileh to the bitset of up-hill trackdirs */
 
const TrackdirBits CYapfCostBase::c_upwards_slopes[] = {
 
	TRACKDIR_BIT_NONE                    , // no tileh
 
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_NW, // 1
 
	TRACKDIR_BIT_X_SW | TRACKDIR_BIT_Y_SE, // 2
 
	TRACKDIR_BIT_X_SW                    , // 3
 
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_SE, // 4
 
	TRACKDIR_BIT_NONE                    , // 5
 
	TRACKDIR_BIT_Y_SE                    , // 6
 
	TRACKDIR_BIT_NONE                    , // 7
 
	TRACKDIR_BIT_X_NE | TRACKDIR_BIT_Y_NW, // 8,
 
	TRACKDIR_BIT_Y_NW                    , // 9
 
	TRACKDIR_BIT_NONE                    , //10
yapf/yapf_rail.cpp
Show inline comments
 
@@ -251,15 +251,16 @@ bool YapfFindNearestRailDepotTwoWay(Vehi
 
	PfnFindNearestDepotTwoWay pfnFindNearestDepotTwoWay = &CYapfAnyDepotRail2::stFindNearestDepotTwoWay;
 

	
 
	// check if non-default YAPF type needed
 
	if (_patches.forbid_90_deg)
 
		pfnFindNearestDepotTwoWay = &CYapfAnyDepotRail3::stFindNearestDepotTwoWay; // Trackdir, forbid 90-deg
 
	else if (_patches.yapf.disable_node_optimization)
 
		pfnFindNearestDepotTwoWay = &CYapfAnyDepotRail1::stFindNearestDepotTwoWay; // Trackdir, allow 90-deg
 

	
 
	bool ret = pfnFindNearestDepotTwoWay(v, tile, td, last_tile, td_rev, max_distance, reverse_penalty, depot_tile, reversed);
 
	return ret;
 
}
 

	
 
/** if any track changes, this counter is incremented - that will invalidate segment cost cache */
 
int CSegmentCostCacheBase::s_rail_change_counter = 0;
 

	
 
void YapfNotifyTrackLayoutChange(TileIndex tile, Track track) {CSegmentCostCacheBase::NotifyTrackLayoutChange(tile, track);}
0 comments (0 inline, 0 general)