Make Goodbye and Choice choices mutually exclusive

0.6.3
Capostrophic 7 years ago committed by Capostrophic
parent 53e8882366
commit 11103211c5

@ -430,11 +430,13 @@ namespace MWDialogue
}
void DialogueManager::addChoice (const std::string& text, int choice)
{
if (!mGoodbye)
{
mIsInChoice = true;
mChoices.push_back(std::make_pair(text, choice));
}
}
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
{
@ -448,7 +450,7 @@ namespace MWDialogue
void DialogueManager::goodbye()
{
mIsInChoice = false;
if (!mIsInChoice)
mGoodbye = true;
}

Loading…
Cancel
Save