1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00

Dialog now goes to next dialog if the "next" button is shown, this follows Morrowind's behavior.

This commit is contained in:
Jan Borsodi 2010-09-15 12:44:43 +02:00
parent 3cc57a058a
commit a676763aa6

View file

@ -176,6 +176,7 @@ void WindowManager::updateCharacterGeneration()
void WindowManager::onNameDialogDone()
{
bool goNext = nameChosen; // Go to next dialog if name was previously chosen
nameChosen = true;
if (nameDialog)
{
@ -189,12 +190,13 @@ void WindowManager::onNameDialogDone()
if (reviewNext)
setMode(GM_Review);
else if (raceChosen)
else if (goNext)
setMode(GM_Race);
}
void WindowManager::onRaceDialogDone()
{
bool goNext = nameChosen; // Go to next dialog if race was previously chosen
raceChosen = true;
if (raceDialog)
{
@ -208,7 +210,7 @@ void WindowManager::onRaceDialogDone()
if (reviewNext)
setMode(GM_Review);
else if (classChosen)
else if (goNext)
setMode(GM_Class);
}