(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support
authorbjarni
Thu, 08 Dec 2005 21:12:15 +0000
changeset 2727 90beb642e8d4
parent 2726 6c4570cbb136
child 2728 8f50c839cd17
(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support
ai/ai.c
ai/ai.h
--- a/ai/ai.c	Thu Dec 08 09:12:25 2005 +0000
+++ b/ai/ai.c	Thu Dec 08 21:12:15 2005 +0000
@@ -114,11 +114,13 @@
 	old_lp = _local_player;
 	_local_player = _current_player;
 
+#ifdef ENABLE_NETWORK
 	/* Send the command */
 	if (_networking)
 		/* Network is easy, send it to his handler */
 		NetworkSend_Command(tile, p1, p2, procc, NULL);
 	else
+#endif
 		/* If we execute BuildCommands directly in SP, we have a big problem with events
 		 *  so we need to delay is for 1 tick */
 		AI_PutCommandInQueue(_current_player, tile, p1, p2, procc);
--- a/ai/ai.h	Thu Dec 08 09:12:25 2005 +0000
+++ b/ai/ai.h	Thu Dec 08 21:12:15 2005 +0000
@@ -3,6 +3,7 @@
 
 #include "../functions.h"
 #include "../network.h"
+#include "../player.h"
 #ifdef GPMI
 #include <gpmi.h>
 #endif /* GPMI */