diff options
author | rubidium <rubidium@openttd.org> | 2009-12-02 16:38:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-02 16:38:33 +0000 |
commit | d58e4084de772b16a6bc7414ec6a99616acc0988 (patch) | |
tree | c0ab77a412703dd47beb7979d063f0c83e9ce3ae /src/pathfinder/npf | |
parent | 81062163a25497e9d83fd354b53234d1796f675d (diff) | |
download | openttd-d58e4084de772b16a6bc7414ec6a99616acc0988.tar.xz |
(svn r18378) -Codechange: move the pathfinder 'length' constants to pathfinder_type.h
Diffstat (limited to 'src/pathfinder/npf')
-rw-r--r-- | src/pathfinder/npf/npf.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/pathfinder/npf/npf.h b/src/pathfinder/npf/npf.h index fb10c07ec..61a4409a1 100644 --- a/src/pathfinder/npf/npf.h +++ b/src/pathfinder/npf/npf.h @@ -31,24 +31,6 @@ enum { NPF_HASH_HALFMASK = (1 << NPF_HASH_HALFBITS) - 1 }; -/* For new pathfinding. Define here so it is globally available without having - * to include npf.h */ -enum { - NPF_TILE_LENGTH = 100 -}; - -enum { - /** - * 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 :-) - */ - NPF_INFINITE_PENALTY = 1000 * NPF_TILE_LENGTH -}; - /* Meant to be stored in AyStar.targetdata */ struct NPFFindStationOrTileData { TileIndex dest_coords; ///< An indication of where the station is, for heuristic purposes, or the target tile |