From 969328d8c196d5e16eb7369a95d4d535467b3cc8 Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 29 Mar 2006 19:00:56 +0000 Subject: (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 --- npf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npf.h') 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 -- cgit v1.2.3-54-g00ecf