(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
This commit is contained in:
@@ -1103,7 +1103,7 @@ 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);
|
||||
@@ -4034,4 +4034,4 @@ void SaveLoad_AI(PlayerID id)
|
||||
for (int i = 0; i != pai->num_build_rec; i++) {
|
||||
SlObject(&pai->src + i, _player_ai_build_rec_desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user