INNER CODE UNIT · C
nextCommands
acoto87/war1 · src/war_ai.c:348
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);