summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathfinder/npf/aystar.h')
-rw-r--r--src/pathfinder/npf/aystar.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pathfinder/npf/aystar.h b/src/pathfinder/npf/aystar.h
index 426a292a0..5be2dd3e4 100644
--- a/src/pathfinder/npf/aystar.h
+++ b/src/pathfinder/npf/aystar.h
@@ -23,7 +23,7 @@
#include "../../track_type.h"
//#define AYSTAR_DEBUG
-enum {
+enum AystarStatus {
AYSTAR_FOUND_END_NODE,
AYSTAR_EMPTY_OPENLIST,
AYSTAR_STILL_BUSY,
@@ -32,9 +32,7 @@ enum {
AYSTAR_DONE
};
-enum {
- AYSTAR_INVALID_NODE = -1,
-};
+static const int AYSTAR_INVALID_NODE = -1;
struct AyStarNode {
TileIndex tile;