diff options
author | alberth <alberth@openttd.org> | 2010-10-02 09:53:44 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 09:53:44 +0000 |
commit | 776d541a89df8ab59d7b3412f0a0372331d7071e (patch) | |
tree | 970b5db562b78769cb2c0f1df65f09622be6b665 /src/pathfinder/npf/aystar.h | |
parent | 8e5aaca6531c8048ff32878a4a2ecc98e5bad261 (diff) | |
download | openttd-776d541a89df8ab59d7b3412f0a0372331d7071e.tar.xz |
(svn r20865) -Codechange: Make AyStarMain_CheckTile() a method.
Diffstat (limited to 'src/pathfinder/npf/aystar.h')
-rw-r--r-- | src/pathfinder/npf/aystar.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathfinder/npf/aystar.h b/src/pathfinder/npf/aystar.h index b37758092..d4445dd74 100644 --- a/src/pathfinder/npf/aystar.h +++ b/src/pathfinder/npf/aystar.h @@ -106,7 +106,6 @@ typedef void AyStar_FoundEndNode(AyStar *aystar, OpenListNode *current); /* For internal use, see aystar.cpp */ 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); struct AyStar { /* These fields should be filled before initting the AyStar, but not changed @@ -151,7 +150,7 @@ struct AyStar { int Loop(); void Free(); void Clear(); - AyStar_CheckTile *checktile; + int CheckTile(AyStarNode *current, OpenListNode *parent); /* These will contain the open and closed lists */ |