summaryrefslogtreecommitdiff
path: root/ai/default
diff options
context:
space:
mode:
Diffstat (limited to 'ai/default')
-rw-r--r--ai/default/default.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index 72383ab12..150e0be92 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -562,14 +562,11 @@ static void AiFindRandomIndustryRoute(FoundRoute *fr)
static void AiFindRandomPassengerRoute(FoundRoute *fr)
{
- uint32 r;
Town *source, *dest;
// initially error
fr->distance = -1;
- r = Random();
-
fr->from = source = AiFindRandomTown();
if (source == NULL || source->population < 400)
return;
@@ -2964,8 +2961,6 @@ static void AiBuildRoadRecursive(AiRoadFinder *arf, TileIndex tile, int dir)
arf->depth--;
}
-int sw;
-
static void AiBuildRoadConstruct(Player *p)
{
@@ -3122,7 +3117,6 @@ static void AiStateBuildRoad(Player *p)
swap_byte(&p->ai.start_dir_a, &p->ai.start_dir_b);
swap_byte(&p->ai.cur_dir_a, &p->ai.cur_dir_b);
- sw ^= 1;
return;
}