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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user