summaryrefslogtreecommitdiff
path: root/src/aystar.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/aystar.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/aystar.h')
-rw-r--r--src/aystar.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/aystar.h b/src/aystar.h
index ebbd53add..f25ac7604 100644
--- a/src/aystar.h
+++ b/src/aystar.h
@@ -27,7 +27,6 @@ enum{
AYSTAR_INVALID_NODE = -1,
};
-typedef struct AyStarNode AyStarNode;
struct AyStarNode {
TileIndex tile;
int direction;
@@ -35,7 +34,6 @@ struct AyStarNode {
};
// The resulting path has nodes looking like this.
-typedef struct PathNode PathNode;
struct PathNode {
AyStarNode node;
// The parent of this item
@@ -45,13 +43,12 @@ struct PathNode {
// For internal use only
// We do not save the h-value, because it is only needed to calculate the f-value.
// h-value should _always_ be the distance left to the end-tile.
-typedef struct OpenListNode OpenListNode;
struct OpenListNode {
int g;
PathNode path;
};
-typedef struct AyStar AyStar;
+struct AyStar;
/*
* This function is called to check if the end-tile is found
* return values can be: