Returned the code as it was. In my test, Proliferate works as before... meaning, I got it crashing several times like before my changes. I still need to rework this code to have it log correctly its actions.
This commit is contained in:
@@ -1749,9 +1749,14 @@ int AIPlayerBaka::computeActions()
|
|||||||
if (object->menuObject)
|
if (object->menuObject)
|
||||||
{
|
{
|
||||||
int doThis = selectMenuOption();
|
int doThis = selectMenuOption();
|
||||||
|
|
||||||
|
// FIXME, action logging is broken in the multiplechoice case.
|
||||||
if(doThis >= 0)
|
if(doThis >= 0)
|
||||||
{
|
{
|
||||||
observer->mLayers->actionLayer()->ButtonPressed(0, doThis);
|
if(object->abilitiesMenu->isMultipleChoice)
|
||||||
|
observer->mLayers->actionLayer()->ButtonPressedOnMultipleChoice(doThis);
|
||||||
|
else
|
||||||
|
observer->mLayers->actionLayer()->doReactTo(doThis);
|
||||||
}
|
}
|
||||||
else if(doThis < 0 || object->checkCantCancel())
|
else if(doThis < 0 || object->checkCantCancel())
|
||||||
observer->mLayers->actionLayer()->doReactTo(object->abilitiesMenu->mObjects.size()-1);
|
observer->mLayers->actionLayer()->doReactTo(object->abilitiesMenu->mObjects.size()-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user