(svn r2973) Move a function declaration somewhere where it belongs
authortron
Fri, 23 Sep 2005 06:38:36 +0000
changeset 2447 47f2b670fb22
parent 2446 df659fbe7e4f
child 2448 0a34e90cb31f
(svn r2973) Move a function declaration somewhere where it belongs
ai/ai.c
ai/default/default.c
ai/default/default.h
player.h
--- a/ai/ai.c	Fri Sep 23 06:34:06 2005 +0000
+++ b/ai/ai.c	Fri Sep 23 06:38:36 2005 +0000
@@ -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.
--- a/ai/default/default.c	Fri Sep 23 06:34:06 2005 +0000
+++ b/ai/default/default.c	Fri Sep 23 06:38:36 2005 +0000
@@ -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;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ai/default/default.h	Fri Sep 23 06:38:36 2005 +0000
@@ -0,0 +1,8 @@
+/* $Id$ */
+
+#ifndef DEFAULT_H
+#define DEFAULT_H
+
+void AiDoGameLoop(Player*);
+
+#endif
--- a/player.h	Fri Sep 23 06:34:06 2005 +0000
+++ b/player.h	Fri Sep 23 06:38:36 2005 +0000
@@ -197,7 +197,6 @@
 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++)