diff options
author | Darkvater <darkvater@openttd.org> | 2006-08-26 21:54:04 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-08-26 21:54:04 +0000 |
commit | 45fa3002088a914fe19ae59f0f4eef77f214e92e (patch) | |
tree | ec8cd508fd46492ed27f78bc9edf6ea11d659dd3 /pathfind.h | |
parent | 6540ae18fd4447ecd4f5dd04b35c3e8248da3124 (diff) | |
download | openttd-45fa3002088a914fe19ae59f0f4eef77f214e92e.tar.xz |
(svn r6159) -Fix: FindClosestTrainDepot hardly ever found a depot with NPF off due to absence of distance-normalization (Rojer)
Diffstat (limited to 'pathfind.h')
-rw-r--r-- | pathfind.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pathfind.h b/pathfind.h index 564d83dc2..432d7ea88 100644 --- a/pathfind.h +++ b/pathfind.h @@ -5,6 +5,11 @@ #include "direction.h" +enum { + STR_FACTOR = 2, + DIAG_FACTOR = 3 +}; + //#define PF_BENCH // perform simple benchmarks on the train pathfinder (not //supported on all archs) |