summaryrefslogtreecommitdiff
path: root/npf.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-29 19:00:56 +0000
committercelestar <celestar@openttd.org>2006-03-29 19:00:56 +0000
commitcb76f96aad98e39e55454a142b598d3d29a48de1 (patch)
tree39eb2dfbed960a9a9d4a76628601cd39c6742e78 /npf.h
parenta51b960be605178de70bcf3152393205db6d1e3c (diff)
downloadopenttd-cb76f96aad98e39e55454a142b598d3d29a48de1.tar.xz
(svn r4153) -Codechange. Changed NPF_TILE_LENGTH into an enum and moved it out of variables.h. Just a drop in the bucket, but it is a start
Diffstat (limited to 'npf.h')
-rw-r--r--npf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/npf.h b/npf.h
index c550edaeb..653d31b9a 100644
--- a/npf.h
+++ b/npf.h
@@ -8,7 +8,6 @@
#include "station.h"
#include "vehicle.h"
#include "tile.h"
-#include "variables.h"
//mowing grass
enum {
@@ -19,6 +18,12 @@ 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 "inifite", which means that paths that
* get this penalty will be chosen, but only if there is no other route