src/ai/api/ai_object.cpp
branchnoai
changeset 9508 e2ff0ef99c76
parent 9496 05ebee9884b3
child 9511 f767ad06e86b
equal deleted inserted replaced
9507:8aabf8569800 9508:e2ff0ef99c76
   117 		_local_player = _current_player;
   117 		_local_player = _current_player;
   118 		::NetworkSend_Command(tile, p1, p2, procc, CcAI);
   118 		::NetworkSend_Command(tile, p1, p2, procc, CcAI);
   119 		_local_player = old_lp;
   119 		_local_player = old_lp;
   120 
   120 
   121 		/* Suspend the AI till the command is really executed */
   121 		/* Suspend the AI till the command is really executed */
   122 		AI_SuspendPlayer(_current_player, -AIObject::GetDoCommandDelay());
   122 		AI_SuspendPlayer(_current_player, -(int)AIObject::GetDoCommandDelay());
   123 		/* Check if the callback still agrees with us, else return error */
   123 		/* Check if the callback still agrees with us, else return error */
   124 		if (!AI_GetCallbackResult(_current_player)) res = CMD_ERROR;
   124 		if (!AI_GetCallbackResult(_current_player)) res = CMD_ERROR;
   125 	} else {
   125 	} else {
   126 #else
   126 #else
   127 	{
   127 	{