summaryrefslogtreecommitdiff
path: root/ai_build.c
diff options
context:
space:
mode:
Diffstat (limited to 'ai_build.c')
-rw-r--r--ai_build.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ai_build.c b/ai_build.c
index 2614dc9d1..f6c4f1d54 100644
--- a/ai_build.c
+++ b/ai_build.c
@@ -85,8 +85,8 @@ int AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, byte fla
if (part < 1) part = 1;
// When we are done, stop it
if (part >= PathFinderInfo->route_length - 1) { PathFinderInfo->position = -2; return 0; }
-
-
+
+
if (PathFinderInfo->rail_or_road) {
// Tunnel code
if ((AI_PATHFINDER_FLAG_TUNNEL & route_extra[part]) != 0) {
@@ -198,7 +198,7 @@ int AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, byte fla
if (!EnsureNoVehicle(route[part]) && flag == DC_EXEC) part--;
PathFinderInfo->position = part;
}
-
+
return cost;
}
@@ -232,7 +232,7 @@ int AiNew_PickVehicle(Player *p) {
int AiNew_Build_Vehicle(Player *p, uint tile, byte flag) {
int i = AiNew_PickVehicle(p);
if (i == -1) return CMD_ERROR;
-
+
if (p->ainew.tbt == AI_TRAIN) {
return CMD_ERROR;
} else {