summaryrefslogtreecommitdiff
path: root/src/astar.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-06 19:18:33 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-06 19:18:33 +0000
commit819c303db467086d714ad663b285b44cde6329cf (patch)
treec32af1bb58379bfc790fd27fe2e4889ffab36df5 /src/astar.cpp
parent5ec4143bde0fd67c7aca841804a5d165c794bdf0 (diff)
downloadmana-client-819c303db467086d714ad663b285b44cde6329cf.tar.gz
mana-client-819c303db467086d714ad663b285b44cde6329cf.tar.bz2
mana-client-819c303db467086d714ad663b285b44cde6329cf.tar.xz
mana-client-819c303db467086d714ad663b285b44cde6329cf.zip
Mostly making map tile data dynamically allocated.
Diffstat (limited to 'src/astar.cpp')
-rw-r--r--src/astar.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/astar.cpp b/src/astar.cpp
index f3e8acb0..d121ca1f 100644
--- a/src/astar.cpp
+++ b/src/astar.cpp
@@ -6,6 +6,10 @@
#define WALKABLE 0
#define NOT_WALKABLE 1
+#define NOT_STARTED 0
+#define FOUND 1
+#define NOT_FOUND 2
+
// path-related constants
const int numberPeople = 1;
int onClosedList = 10;
@@ -470,17 +474,3 @@ PATH_NODE *find_path(int pathfinderID, int s_x, int s_y, int e_x, int e_y)
// Path not found
return NULL;
}
-
-void ReadPath(int pathfinderID)
-{
- // If a path exists, read the path data from the pathbank.
- // Set pathLocation to 1st step
- pathLocation = 1;
- while (pathLocation<pathLength) {
- int a = path_bank[pathLocation * 2 - 2];
- int b = path_bank[pathLocation * 2 - 1];
- pathLocation = pathLocation + 1;
- // Draw dotted path
- whichList[a][b] = 3;
- }
-}