From 2d2e1e386315db0c83f508c19387e9f2e0c9cee1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 9 Jan 2008 21:05:03 +0000 Subject: (svn r11800) -Codechange: move some functions to a more logical location + some type safety. --- src/ai/default/default.cpp | 4 ++-- src/ai/default/default.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ai/default') diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index e3e3e8ba5..6d72f2043 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -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); } -} \ No newline at end of file +} diff --git a/src/ai/default/default.h b/src/ai/default/default.h index 9c45d0945..934f96f22 100644 --- a/src/ai/default/default.h +++ b/src/ai/default/default.h @@ -3,6 +3,8 @@ #ifndef DEFAULT_H #define DEFAULT_H +#include "../../direction_type.h" + void AiDoGameLoop(Player*); void SaveLoad_AI(PlayerID id); -- cgit v1.2.3-70-g09d2