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
commitbf98086de80da38fb0256f3f076d5069f6b4e997 (patch)
tree7efaf8780f89086574128eced521726184ff5f5b /ai/default
parent23bfc03054c52065006a73d8cebdeee068784892 (diff)
downloadopenttd-bf98086de80da38fb0256f3f076d5069f6b4e997.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;
}