- AI bugfixes (manaburn with ankh of mishra...)
- small tweaks
This commit is contained in:
wagic.the.homebrew
2009-03-18 11:29:23 +00:00
parent 070e24ec7a
commit a3c3006043
4 changed files with 12 additions and 10 deletions

View File

@@ -708,13 +708,6 @@ int AIPlayerBaka::Act(float dt){
OutputDebugString("Cannot interrupt\n");
return 0;
}
if (!clickstream.empty()){
AIAction * action = clickstream.front();
action->Act();
SAFE_DELETE(action);
clickstream.pop();
}
if (clickstream.empty()) computeActions();
if (clickstream.empty()){
if (g->isInterrupting == this){
@@ -722,7 +715,16 @@ int AIPlayerBaka::Act(float dt){
}else{
g->userRequestNextGamePhase();
}
} else {
//if (!clickstream.empty()){
AIAction * action = clickstream.front();
action->Act();
SAFE_DELETE(action);
clickstream.pop();
}
//if (clickstream.empty()) computeActions();
return 1;
};