File diff r8235:ebc96e1d64d0 → r8236:a2ecfe92ab23
src/ai/default/default.cpp
Show inline comments
 
@@ -1100,13 +1100,13 @@ static void AiWantPassengerRoute(Player 
 
}
 

	
 
static void AiWantTrainRoute(Player *p)
 
{
 
	uint16 r = GB(Random(), 0, 16);
 

	
 
	_players_ai[p->index].railtype_to_use = GetBestRailtype(p);
 
	_players_ai[p->index].railtype_to_use = GetBestRailtype(p->index);
 

	
 
	if (r > 0xD000) {
 
		AiWantLongIndustryRoute(p);
 
	} else if (r > 0x6000) {
 
		AiWantMediumIndustryRoute(p);
 
	} else if (r > 0x1000) {
 
@@ -4031,7 +4031,7 @@ void SaveLoad_AI(PlayerID id)
 
{
 
	PlayerAI *pai = &_players_ai[id];
 
	SlObject(pai, _player_ai_desc);
 
	for (int i = 0; i != pai->num_build_rec; i++) {
 
		SlObject(&pai->src + i, _player_ai_build_rec_desc);
 
	}
 
}
 
\ No newline at end of file
 
}