From 313fcfbd83e45f8b4d6041402306685ab787d42e Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 23 Sep 2005 06:38:36 +0000 Subject: (svn r2973) Move a function declaration somewhere where it belongs --- ai/ai.c | 1 + ai/default/default.c | 1 + ai/default/default.h | 8 ++++++++ player.h | 1 - 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ai/default/default.h diff --git a/ai/ai.c b/ai/ai.c index 6779528e2..f9dc01daa 100644 --- a/ai/ai.c +++ b/ai/ai.c @@ -6,6 +6,7 @@ #include "../command.h" #include "../network.h" #include "ai.h" +#include "default/default.h" /** * Dequeues commands put in the queue via AI_PutCommandInQueue. diff --git a/ai/default/default.c b/ai/default/default.c index 0fb4a3817..8257b0026 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -17,6 +17,7 @@ #include "../../airport.h" #include "../../depot.h" #include "../../variables.h" +#include "default.h" // remove some day perhaps? static Player *_cur_ai_player; diff --git a/ai/default/default.h b/ai/default/default.h new file mode 100644 index 000000000..d367d4a72 --- /dev/null +++ b/ai/default/default.h @@ -0,0 +1,8 @@ +/* $Id$ */ + +#ifndef DEFAULT_H +#define DEFAULT_H + +void AiDoGameLoop(Player*); + +#endif diff --git a/player.h b/player.h index 001b43f7c..645cb31ad 100644 --- a/player.h +++ b/player.h @@ -197,7 +197,6 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player); void GetNameOfOwner(PlayerID owner, TileIndex tile); int64 CalculateCompanyValue(Player *p); void InvalidatePlayerWindows(Player *p); -void AiDoGameLoop(Player *p); void UpdatePlayerMoney32(Player *p); #define FOR_ALL_PLAYERS(p) for(p=_players; p != endof(_players); p++) -- cgit v1.2.3-70-g09d2