mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 16:09:41 +00:00
Merge remote-tracking branch 'capostrophic/goodbye'
This commit is contained in:
commit
6a4cd975b6
3 changed files with 10 additions and 8 deletions
|
@ -1,13 +1,13 @@
|
||||||
0.45.0
|
0.45.0
|
||||||
------
|
------
|
||||||
Bug #2835: Player able to slowly move when overencumbered
|
Bug #2835: Player able to slowly move when overencumbered
|
||||||
|
Bug #3897: Have Goodbye give all choices the effects of Goodbye
|
||||||
Bug #4221: Characters get stuck in V-shaped terrain
|
Bug #4221: Characters get stuck in V-shaped terrain
|
||||||
Bug #4293: Faction members are not aware of faction ownerships in barter
|
Bug #4293: Faction members are not aware of faction ownerships in barter
|
||||||
Bug #4327: Missing animations during spell/weapon stance switching
|
Bug #4327: Missing animations during spell/weapon stance switching
|
||||||
Bug #4426: RotateWorld behavior is incorrect
|
Bug #4426: RotateWorld behavior is incorrect
|
||||||
Bug #4429: [Windows] Error on build INSTALL.vcxproj project (debug) with cmake 3.7.2
|
Bug #4429: [Windows] Error on build INSTALL.vcxproj project (debug) with cmake 3.7.2
|
||||||
Bug #4433: Guard behaviour is incorrect with Alarm = 0
|
Bug #4433: Guard behaviour is incorrect with Alarm = 0
|
||||||
Bug #4443: Goodbye option and dialogue choices are not mutually exclusive
|
|
||||||
Feature #4444: Per-group KF-animation files support
|
Feature #4444: Per-group KF-animation files support
|
||||||
|
|
||||||
0.44.0
|
0.44.0
|
||||||
|
|
|
@ -430,13 +430,10 @@ namespace MWDialogue
|
||||||
}
|
}
|
||||||
|
|
||||||
void DialogueManager::addChoice (const std::string& text, int choice)
|
void DialogueManager::addChoice (const std::string& text, int choice)
|
||||||
{
|
|
||||||
if (!mGoodbye)
|
|
||||||
{
|
{
|
||||||
mIsInChoice = true;
|
mIsInChoice = true;
|
||||||
mChoices.push_back(std::make_pair(text, choice));
|
mChoices.push_back(std::make_pair(text, choice));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
|
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
|
||||||
{
|
{
|
||||||
|
@ -450,7 +447,7 @@ namespace MWDialogue
|
||||||
|
|
||||||
void DialogueManager::goodbye()
|
void DialogueManager::goodbye()
|
||||||
{
|
{
|
||||||
if (!mIsInChoice)
|
mIsInChoice = false;
|
||||||
mGoodbye = true;
|
mGoodbye = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -635,6 +635,11 @@ namespace MWGui
|
||||||
|
|
||||||
void DialogueWindow::onChoiceActivated(int id)
|
void DialogueWindow::onChoiceActivated(int id)
|
||||||
{
|
{
|
||||||
|
if (mGoodbye)
|
||||||
|
{
|
||||||
|
onGoodbyeActivated();
|
||||||
|
return;
|
||||||
|
}
|
||||||
MWBase::Environment::get().getDialogueManager()->questionAnswered(id, mCallback.get());
|
MWBase::Environment::get().getDialogueManager()->questionAnswered(id, mCallback.get());
|
||||||
updateTopics();
|
updateTopics();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue