From 49c7eb934be0dc92d640ea3a32c02dddcc83369a Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 18 Feb 2006 14:41:24 +0000 Subject: (svn r3613) Some more const, indentation, whitespace and similar stuff --- ai/trolly/pathfinder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai/trolly/pathfinder.c') diff --git a/ai/trolly/pathfinder.c b/ai/trolly/pathfinder.c index 79d1dfc53..1ac4d49cb 100644 --- a/ai/trolly/pathfinder.c +++ b/ai/trolly/pathfinder.c @@ -485,7 +485,7 @@ static int32 AyStar_AiPathFinder_CalculateG(AyStar *aystar, AyStarNode *current, 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 than straight path - if (dir1 > 1) { res -= AI_PATHFINDER_DIAGONAL_BONUS; } + if (dir1 > 1) res -= AI_PATHFINDER_DIAGONAL_BONUS; // First see if they are different if (dir1 != dir2) { -- cgit v1.2.3-54-g00ecf