summaryrefslogtreecommitdiff
path: root/aystar.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-28 18:53:03 +0000
committerrubidium <rubidium@openttd.org>2006-08-28 18:53:03 +0000
commit27cee58ab823cbab0ab8905ce7b52143de7ca5e5 (patch)
tree9de9b15a15bde4d4e092c3abfde1fae7eb2d76f0 /aystar.h
parent8cc7aa9aa03d67ee59fcbf60dfb4d0cd407d3f3d (diff)
downloadopenttd-27cee58ab823cbab0ab8905ce7b52143de7ca5e5.tar.xz
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
Diffstat (limited to 'aystar.h')
-rw-r--r--aystar.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/aystar.h b/aystar.h
index fed4213ec..4920a37d4 100644
--- a/aystar.h
+++ b/aystar.h
@@ -5,7 +5,7 @@
* AyStar is a fast pathfinding routine and is used for things like
* AI_pathfinding and Train_pathfinding.
* For more information about AyStar (A* Algorithm), you can look at
- * http://en.wikipedia.org/wiki/A-star_search_algorithm
+ * http://en.wikipedia.org/wiki/A-star_search_algorithm
*/
#ifndef AYSTAR_H
@@ -55,8 +55,8 @@ typedef struct AyStar AyStar;
/*
* This function is called to check if the end-tile is found
* return values can be:
- * AYSTAR_FOUND_END_NODE : indicates this is the end tile
- * AYSTAR_DONE : indicates this is not the end tile (or direction was wrong)
+ * AYSTAR_FOUND_END_NODE : indicates this is the end tile
+ * AYSTAR_DONE : indicates this is not the end tile (or direction was wrong)
*/
/*
* The 2nd parameter should be OpenListNode, and NOT AyStarNode. AyStarNode is
@@ -71,8 +71,8 @@ typedef int32 AyStar_EndNodeCheck(AyStar *aystar, OpenListNode *current);
/*
* This function is called to calculate the G-value for AyStar Algorithm.
* return values can be:
- * AYSTAR_INVALID_NODE : indicates an item is not valid (e.g.: unwalkable)
- * Any value >= 0 : the g-value for this tile
+ * AYSTAR_INVALID_NODE : indicates an item is not valid (e.g.: unwalkable)
+ * Any value >= 0 : the g-value for this tile
*/
typedef int32 AyStar_CalculateG(AyStar *aystar, AyStarNode *current, OpenListNode *parent);
@@ -81,7 +81,7 @@ typedef int32 AyStar_CalculateG(AyStar *aystar, AyStarNode *current, OpenListNod
* Mostly, this must result the distance (Manhattan way) between the
* current point and the end point
* return values can be:
- * Any value >= 0 : the h-value for this tile
+ * Any value >= 0 : the h-value for this tile
*/
typedef int32 AyStar_CalculateH(AyStar *aystar, AyStarNode *current, OpenListNode *parent);