mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 11:06:43 +00:00
When dialogue goodbye is forced, allow using either the red link or the goodbye button
Fixes #1373
This commit is contained in:
parent
7c9c0830a9
commit
dcc0e2d105
1 changed files with 3 additions and 2 deletions
|
@ -271,7 +271,8 @@ namespace MWGui
|
||||||
|
|
||||||
void DialogueWindow::exit()
|
void DialogueWindow::exit()
|
||||||
{
|
{
|
||||||
if (!mEnabled || MWBase::Environment::get().getDialogueManager()->isInChoice())
|
if ((!mEnabled || MWBase::Environment::get().getDialogueManager()->isInChoice())
|
||||||
|
&& !mGoodbye)
|
||||||
return;
|
return;
|
||||||
MWBase::Environment::get().getDialogueManager()->goodbyeSelected();
|
MWBase::Environment::get().getDialogueManager()->goodbyeSelected();
|
||||||
}
|
}
|
||||||
|
@ -517,7 +518,7 @@ namespace MWGui
|
||||||
|
|
||||||
MyGUI::Button* byeButton;
|
MyGUI::Button* byeButton;
|
||||||
getWidget(byeButton, "ByeButton");
|
getWidget(byeButton, "ByeButton");
|
||||||
if(MWBase::Environment::get().getDialogueManager()->isInChoice()) {
|
if(MWBase::Environment::get().getDialogueManager()->isInChoice() && !mGoodbye) {
|
||||||
byeButton->setEnabled(false);
|
byeButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue