(svn r2218) Indentation
This commit is contained in:
		@@ -198,7 +198,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
 | 
				
			|||||||
	aystar->num_neighbours = 0;
 | 
						aystar->num_neighbours = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Go through all surrounding tiles and check if they are within the limits
 | 
						// Go through all surrounding tiles and check if they are within the limits
 | 
				
			||||||
   	for (i=0;i<4;i++) {
 | 
						for (i = 0; i < 4; i++) {
 | 
				
			||||||
		if (TileX(TileOffsByDir(i) + current->path.node.tile) > 1 &&
 | 
							if (TileX(TileOffsByDir(i) + current->path.node.tile) > 1 &&
 | 
				
			||||||
				TileX(TileOffsByDir(i) + current->path.node.tile) < MapMaxX() - 1 &&
 | 
									TileX(TileOffsByDir(i) + current->path.node.tile) < MapMaxX() - 1 &&
 | 
				
			||||||
				TileY(TileOffsByDir(i) + current->path.node.tile) > 1 &&
 | 
									TileY(TileOffsByDir(i) + current->path.node.tile) > 1 &&
 | 
				
			||||||
@@ -239,10 +239,11 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
 | 
				
			|||||||
				// If not, this means we are at the starting station
 | 
									// If not, this means we are at the starting station
 | 
				
			||||||
				if (PathFinderInfo->start_direction != AI_PATHFINDER_NO_DIRECTION) {
 | 
									if (PathFinderInfo->start_direction != AI_PATHFINDER_NO_DIRECTION) {
 | 
				
			||||||
					// We do need a direction?
 | 
										// We do need a direction?
 | 
				
			||||||
		       		if (AiNew_GetDirection(current->path.node.tile, current->path.node.tile + TileOffsByDir(i)) != PathFinderInfo->start_direction)
 | 
										if (AiNew_GetDirection(current->path.node.tile, current->path.node.tile + TileOffsByDir(i)) != PathFinderInfo->start_direction) {
 | 
				
			||||||
						// We are not pointing the right way, invalid tile
 | 
											// We are not pointing the right way, invalid tile
 | 
				
			||||||
						continue;
 | 
											continue;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
			} else if (current->path.node.user_data[0] == 0) {
 | 
								} else if (current->path.node.user_data[0] == 0) {
 | 
				
			||||||
				if (PathFinderInfo->rail_or_road) {
 | 
									if (PathFinderInfo->rail_or_road) {
 | 
				
			||||||
					// Rail check
 | 
										// Rail check
 | 
				
			||||||
@@ -281,7 +282,6 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
 | 
				
			|||||||
						if (CmdFailed(ret)) continue;
 | 
											if (CmdFailed(ret)) continue;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// The tile can be connected
 | 
								// The tile can be connected
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user