1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(svn r3298) Remove unused and write-only variables

This commit is contained in:
tron
2005-12-14 06:28:48 +00:00
parent 23bfc03054
commit bf98086de8
10 changed files with 3 additions and 54 deletions

View File

@@ -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;
}