summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authormiham <miham@openttd.org>2004-12-29 13:13:29 +0000
committermiham <miham@openttd.org>2004-12-29 13:13:29 +0000
commit57852f64988b92fa7d9031ea76aa89b67d08c4f6 (patch)
tree66526ea5c00e53199cc02447a0970c13b4e8175e /ai_pathfinder.c
parent14dfb539b06bb9ad411dbcf6e4141f189713a099 (diff)
downloadopenttd-57852f64988b92fa7d9031ea76aa89b67d08c4f6.tar.xz
(svn r1297) Language fixes in the source.. (ln-)
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r--ai_pathfinder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index 5c837a460..abde1e772 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -140,7 +140,7 @@ static int32 AyStar_AiPathFinder_CalculateH(AyStar *aystar, AyStarNode *current,
r = GetTileDist(current->tile, PathFinderInfo->end_tile_tl);
r2 = GetTileDist(current->tile, PathFinderInfo->end_tile_br);
}
- // See if the bottomright is faster then the topleft..
+ // See if the bottomright is faster than the topleft..
if (r2 < r) r = r2;
return r * AI_PATHFINDER_H_MULTIPLER;
}
@@ -429,7 +429,7 @@ static int32 AyStar_AiPathFinder_CalculateG(AyStar *aystar, AyStarNode *current,
if (parent->path.parent != NULL && parent->path.parent->parent != NULL) {
int dir1 = AiNew_GetRailDirection(parent->path.parent->node.tile, parent->path.node.tile, current->tile);
int dir2 = AiNew_GetRailDirection(parent->path.parent->parent->node.tile, parent->path.parent->node.tile, parent->path.node.tile);
- // First, see if we are on diagonal path, that is better then straight path
+ // First, see if we are on diagonal path, that is better than straight path
if (dir1 > 1) { res -= AI_PATHFINDER_DIAGONAL_BONUS; }
// First see if they are different