Changeset - r2727:858ec9f64238
[Not reviewed]
master
0 2 0
bjarni - 19 years ago 2005-12-08 21:12:15
bjarni@openttd.org
(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ai/ai.c
Show inline comments
 
@@ -114,11 +114,13 @@ int32 AI_DoCommand(uint tile, uint32 p1,
 
	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);
ai/ai.h
Show inline comments
 
@@ -3,6 +3,7 @@
 

	
 
#include "../functions.h"
 
#include "../network.h"
 
#include "../player.h"
 
#ifdef GPMI
 
#include <gpmi.h>
 
#endif /* GPMI */
0 comments (0 inline, 0 general)