summaryrefslogtreecommitdiff
path: root/npf.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-03 20:54:54 +0000
committertron <tron@openttd.org>2006-03-03 20:54:54 +0000
commit08720b6fd7c8cf345debbf1278698328e268d88e (patch)
tree95d8716647b3513c1c50be1fa871ca8b086db30f /npf.h
parent4ebaa55fe112233cf806cd079a779199f09b9128 (diff)
downloadopenttd-08720b6fd7c8cf345debbf1278698328e268d88e.tar.xz
(svn r3750) Use INVALID_STATION instead of -1 in NPF
Diffstat (limited to 'npf.h')
-rw-r--r--npf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/npf.h b/npf.h
index 380f29fa3..26b268521 100644
--- a/npf.h
+++ b/npf.h
@@ -5,6 +5,7 @@
#include "openttd.h"
#include "aystar.h"
+#include "station.h"
#include "vehicle.h"
#include "tile.h"
#include "variables.h"
@@ -31,7 +32,7 @@ enum {
typedef struct NPFFindStationOrTileData { /* Meant to be stored in AyStar.targetdata */
TileIndex dest_coords; /* An indication of where the station is, for heuristic purposes, or the target tile */
- int station_index; /* station index we're heading for, or -1 when we're heading for a tile */
+ StationID station_index; /* station index we're heading for, or INVALID_STATION when we're heading for a tile */
} NPFFindStationOrTileData;
enum { /* Indices into AyStar.userdata[] */