# HG changeset patch # User KUDr # Date 2006-05-28 19:01:29 # Node ID b144c53f5e2a3bf502bdcb1463d544d58a4c5e89 # Parent 9ab560aaf038fbbd9452b1a23ddbdf24b360d823 (svn r5006) Added comments where doxygen generated warnings to test if it can help. diff --git a/yapf/yapf_common.cpp b/yapf/yapf_common.cpp --- a/yapf/yapf_common.cpp +++ b/yapf/yapf_common.cpp @@ -8,6 +8,7 @@ #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 diff --git a/yapf/yapf_rail.cpp b/yapf/yapf_rail.cpp --- a/yapf/yapf_rail.cpp +++ b/yapf/yapf_rail.cpp @@ -260,6 +260,7 @@ bool YapfFindNearestRailDepotTwoWay(Vehi 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);}