summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/aystar.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-10-02 09:49:32 +0000
committeralberth <alberth@openttd.org>2010-10-02 09:49:32 +0000
commit8e5aaca6531c8048ff32878a4a2ecc98e5bad261 (patch)
tree50638962edc1fa2695fe4754ffc41fd8162a9ac2 /src/pathfinder/npf/aystar.h
parent2a796187efdaeb0050d0501ad7b468fdce84c2ee (diff)
downloadopenttd-8e5aaca6531c8048ff32878a4a2ecc98e5bad261.tar.xz
(svn r20864) -Codechange: Make AyStar_Clear() a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.h')
-rw-r--r--src/pathfinder/npf/aystar.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pathfinder/npf/aystar.h b/src/pathfinder/npf/aystar.h
index 8088ba7fe..b37758092 100644
--- a/src/pathfinder/npf/aystar.h
+++ b/src/pathfinder/npf/aystar.h
@@ -107,7 +107,6 @@ typedef void AyStar_FoundEndNode(AyStar *aystar, OpenListNode *current);
typedef void AyStar_AddStartNode(AyStar *aystar, AyStarNode *start_node, uint g);
typedef int AyStar_Main(AyStar *aystar);
typedef int AyStar_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNode *parent);
-typedef void AyStar_Clear(AyStar *aystar);
struct AyStar {
/* These fields should be filled before initting the AyStar, but not changed
@@ -151,7 +150,7 @@ struct AyStar {
AyStar_Main *main;
int Loop();
void Free();
- AyStar_Clear *clear;
+ void Clear();
AyStar_CheckTile *checktile;
/* These will contain the open and closed lists */
@@ -167,7 +166,6 @@ struct AyStar {
int AyStarMain_Main(AyStar *aystar);
-void AyStarMain_Clear(AyStar *aystar);
/* Initialize an AyStar. You should fill all appropriate fields before
* callling init_AyStar (see the declaration of AyStar for which fields are