1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 20:29:57 +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() void WindowManager::onNameDialogDone()
{ {
bool goNext = nameChosen; // Go to next dialog if name was previously chosen
nameChosen = true; nameChosen = true;
if (nameDialog) if (nameDialog)
{ {
@ -189,12 +190,13 @@ void WindowManager::onNameDialogDone()
if (reviewNext) if (reviewNext)
setMode(GM_Review); setMode(GM_Review);
else if (raceChosen) else if (goNext)
setMode(GM_Race); setMode(GM_Race);
} }
void WindowManager::onRaceDialogDone() void WindowManager::onRaceDialogDone()
{ {
bool goNext = nameChosen; // Go to next dialog if race was previously chosen
raceChosen = true; raceChosen = true;
if (raceDialog) if (raceDialog)
{ {
@ -208,7 +210,7 @@ void WindowManager::onRaceDialogDone()
if (reviewNext) if (reviewNext)
setMode(GM_Review); setMode(GM_Review);
else if (classChosen) else if (goNext)
setMode(GM_Class); setMode(GM_Class);
} }