made it even more specific to the exploit, when you open the option menu while abilitiesmenu is open for the purpose of canceling then undo last action.

This commit is contained in:
omegablast2002@yahoo.com
2012-03-25 11:47:17 +00:00
parent a2ca6ce26b
commit 5c340a2fb5

View File

@@ -903,7 +903,7 @@ void GameStateDuel::ButtonPressed(int controllerId, int controlId)
break;
default:
if(game->mLayers->actionLayer()->abilitiesMenu)
if(game->mLayers->actionLayer()->abilitiesMenu && controlId == MENUITEM_CANCEL)
{
game->undo();
menu->Close();