summaryrefslogtreecommitdiff
path: root/src/pathfinder/yapf
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-02 16:38:33 +0000
committerrubidium <rubidium@openttd.org>2009-12-02 16:38:33 +0000
commitd58e4084de772b16a6bc7414ec6a99616acc0988 (patch)
treec0ab77a412703dd47beb7979d063f0c83e9ce3ae /src/pathfinder/yapf
parent81062163a25497e9d83fd354b53234d1796f675d (diff)
downloadopenttd-d58e4084de772b16a6bc7414ec6a99616acc0988.tar.xz
(svn r18378) -Codechange: move the pathfinder 'length' constants to pathfinder_type.h
Diffstat (limited to 'src/pathfinder/yapf')
-rw-r--r--src/pathfinder/yapf/yapf.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/pathfinder/yapf/yapf.h b/src/pathfinder/yapf/yapf.h
index 337cb02b5..2faf5e56a 100644
--- a/src/pathfinder/yapf/yapf.h
+++ b/src/pathfinder/yapf/yapf.h
@@ -105,20 +105,4 @@ bool YapfTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir td, b
/** Use this function to notify YAPF that track layout (or signal configuration) has change */
void YapfNotifyTrackLayoutChange(TileIndex tile, Track track);
-/** Base tile length units */
-enum {
- YAPF_TILE_LENGTH = 100,
- YAPF_TILE_CORNER_LENGTH = 71,
-
- /**
- * This penalty is the equivalent of "infite", which means that paths that
- * get this penalty will be chosen, but only if there is no other route
- * without it. Be careful with not applying this penalty to often, or the
- * total path cost might overflow..
- * For now, this is just a Very Big Penalty, we might actually implement
- * this in a nicer way :-)
- */
- YAPF_INFINITE_PENALTY = 1000 * YAPF_TILE_LENGTH,
-};
-
#endif /* YAPF_H */