summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-05-28 19:01:29 +0000
committerKUDr <kudr@openttd.org>2006-05-28 19:01:29 +0000
commite1f6f4c13ef70f88a999d06c6a3b37a4cf74e105 (patch)
tree5b6f71079745ac93aa0acc5cc8af515edbb05479 /yapf
parentee2af6ad3efc8cbb80ea4c176e4e4b4aea646472 (diff)
downloadopenttd-e1f6f4c13ef70f88a999d06c6a3b37a4cf74e105.tar.xz
(svn r5006) Added comments where doxygen generated warnings to test if it can help.
Diffstat (limited to 'yapf')
-rw-r--r--yapf/yapf_common.cpp1
-rw-r--r--yapf/yapf_rail.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/yapf/yapf_common.cpp b/yapf/yapf_common.cpp
index a0a911cf9..99155c58e 100644
--- 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
index 08ee143ed..67d3d781f 100644
--- a/yapf/yapf_rail.cpp
+++ b/yapf/yapf_rail.cpp
@@ -260,6 +260,7 @@ bool YapfFindNearestRailDepotTwoWay(Vehicle *v, int max_distance, int reverse_pe
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);}