summaryrefslogtreecommitdiff
path: root/src/aystar.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
commitb25a4f8231f3ded44038ea454a3d4c6a2dc9217d (patch)
tree776122508c686680b9c97f37ba3cb92ef905d67f /src/aystar.h
parentd72273d1f3b55df0e301408d630f24ef92ea8479 (diff)
downloadopenttd-b25a4f8231f3ded44038ea454a3d4c6a2dc9217d.tar.xz
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
Diffstat (limited to 'src/aystar.h')
-rw-r--r--src/aystar.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/aystar.h b/src/aystar.h
index a759b5b22..5fcf7849d 100644
--- a/src/aystar.h
+++ b/src/aystar.h
@@ -35,16 +35,16 @@ struct AyStarNode {
uint user_data[2];
};
-// The resulting path has nodes looking like this.
+/* The resulting path has nodes looking like this. */
struct PathNode {
AyStarNode node;
- // The parent of this item
+ /* The parent of this item */
PathNode *parent;
};
-// 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.
+/* 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. */
struct OpenListNode {
int g;
PathNode path;
@@ -97,7 +97,7 @@ typedef void AyStar_GetNeighbours(AyStar *aystar, OpenListNode *current);
*/
typedef void AyStar_FoundEndNode(AyStar *aystar, OpenListNode *current);
-// For internal use, see aystar.c
+/* 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_Loop(AyStar *aystar);