equal
deleted
inserted
replaced
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 { |