init'ed the variable "mFindingAbility" bool in Aiplayer constructor and changed its name from previous name "findingAbility" to keep in line with recent code rules.

added COMMENTS to explain the variable.
This commit is contained in:
omegablast2002@yahoo.com
2010-12-03 12:10:35 +00:00
parent e71fb8ff46
commit 336b25c0f5
3 changed files with 22 additions and 17 deletions
+4 -4
View File
@@ -85,9 +85,9 @@ int AIMomirPlayer::computeActions()
int currentGamePhase = g->getCurrentGamePhase();
if (g->isInterrupting == this)
{ // interrupting
if (!findingAbility)
if (!mFindingAbility)//if not looking for an activated ability to use, then go ahead and look now.
{
AIPlayer::findingAbility = true;
mFindingAbility = true;
selectAbility();
}
return 1;
@@ -123,9 +123,9 @@ int AIMomirPlayer::computeActions()
break;
}
case Constants::MTG_PHASE_SECONDMAIN:
if (!findingAbility)
if (!mFindingAbility)//if not looking for an activated ability to use, then go ahead and look now.
{
AIPlayer::findingAbility = true;
mFindingAbility = true;
selectAbility();
}
return 1;