INNER CODE UNIT · C
command
acoto87/war1 · src/war_ai.c:328
WarAICommand* command = commands->items[i];
if (!wai_executeAICommand(context, aiPlayer, command))
{
updateNext = false;
}
}
return updateNext;
}
void wai_updateAINextCommands(WarContext* context, WarPlayerInfo* aiPlayer)
{
NOT_USED(context);
WarAI* ai = aiPlayer->ai;
assert(ai);
#define isWaitOrSleep(command) ((command)->type == WAR_AI_COMMAND_WAIT || (command)->type == WAR_AI_COMMAND_SLEEP)