summaryrefslogtreecommitdiff
path: root/ai/default
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-14 06:28:48 +0000
committertron <tron@openttd.org>2005-12-14 06:28:48 +0000
commita2533d5ee6b637274c18b623d1baf10740bb9f28 (patch)
tree7efaf8780f89086574128eced521726184ff5f5b /ai/default
parent9822b4d755ba1bcc126643cd21a2c4362a4026d9 (diff)
downloadopenttd-a2533d5ee6b637274c18b623d1baf10740bb9f28.tar.xz
(svn r3298) Remove unused and write-only variables
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;
}