From 57070b7f5c04f68d02c5e9ee5f9e81810c331317 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 19 Apr 2018 13:47:42 +0300 Subject: [PATCH] [Client] Disable automatic transition to other chargen menus from OpenMW Previously, after finishing the TES3MP chargen once, mCreationStage was set to 4 in OpenMW, which in turn made it impossible to go through only specific chargen menus again as the result of the relevant TES3MP script function (tes3mp.SetCharGenStage(pid, startStage, endStage) in 0.6.3, player:setCharGenStages(startStage, endStage) in 0.7). In other words, trying to allow a player to just choose their class again made it so the player started at that menu and went through all the other subsequent menus as well, i.e. the player went through the class, birthsign and review menus. --- apps/openmw/mwgui/charactercreation.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/openmw/mwgui/charactercreation.cpp b/apps/openmw/mwgui/charactercreation.cpp index 45acdc595..37ed54f28 100644 --- a/apps/openmw/mwgui/charactercreation.cpp +++ b/apps/openmw/mwgui/charactercreation.cpp @@ -705,10 +705,22 @@ namespace MWGui { MWBase::Environment::get().getWindowManager()->pushGuiMode(GM_Review); } + /* + Start of tes3mp change (major) + + Servers have control over character generation in multiplayer, which is why + the automatic transition to the next character generation menu has been + commented out here + */ + /* else if (mCreationStage >= currentStage) { MWBase::Environment::get().getWindowManager()->pushGuiMode((GuiMode)nextMode); } + */ + /* + End of tes3mp change (major) + */ else { mCreationStage = currentStage;