INNER CODE UNIT · C
currentCommands
acoto87/war1 · src/war_ai.c:347
WarAICommandList* currentCommands = &ai->currentCommands;
WarAICommandQueue* nextCommands = &ai->nextCommands;
if (nextCommands->count > 0)
{
WarAICommand* command = NULL;
do
{
command = WarAICommandQueuePop(nextCommands);
WarAICommandListAdd(currentCommands, command);
} while (nextCommands->count > 0 && !isWaitOrSleep(command));
}
#undef isWaitOrSleep
}
void wai_removeCompletedAICommands(WarContext* context, WarPlayerInfo* aiPlayer)
{
NOT_USED(context);