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; diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index a5bed7788..8d179c093 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -49,7 +49,6 @@ LocalPlayer::LocalPlayer() charGenState.isFinished = false; difficulty = 0; - enforcedLogLevel = -1; physicsFramerate = 60.0; consoleAllowed = false; bedRestAllowed = true; @@ -215,7 +214,7 @@ void LocalPlayer::updateStatsDynamic(bool forceUpdate) if (needUpdate(oldHealth, health, 2)) statsDynamicIndexChanges.push_back(0); - + if (needUpdate(oldMagicka, magicka, 4)) statsDynamicIndexChanges.push_back(1); diff --git a/apps/openmw/mwmp/LocalPlayer.hpp b/apps/openmw/mwmp/LocalPlayer.hpp index 7a78331b2..b17f6630a 100644 --- a/apps/openmw/mwmp/LocalPlayer.hpp +++ b/apps/openmw/mwmp/LocalPlayer.hpp @@ -1,7 +1,3 @@ -// -// Created by koncord on 14.01.16. -// - #ifndef OPENMW_LOCALPLAYER_HPP #define OPENMW_LOCALPLAYER_HPP @@ -21,7 +17,7 @@ namespace mwmp void update(); - bool processCharGen(); // return true if CGStage::current == CGStage::end + bool processCharGen(); bool hasFinishedCharGen(); void updateStatsDynamic(bool forceUpdate = false); diff --git a/apps/openmw/mwmp/Main.cpp b/apps/openmw/mwmp/Main.cpp index e29901c4e..ec298bc21 100644 --- a/apps/openmw/mwmp/Main.cpp +++ b/apps/openmw/mwmp/Main.cpp @@ -212,6 +212,7 @@ void Main::frame(float dt) void Main::updateWorld(float dt) const { + if (!mLocalPlayer->processCharGen()) return; diff --git a/components/openmw-mp/Base/BasePlayer.hpp b/components/openmw-mp/Base/BasePlayer.hpp index 7837c6be8..159929e6d 100644 --- a/components/openmw-mp/Base/BasePlayer.hpp +++ b/components/openmw-mp/Base/BasePlayer.hpp @@ -258,6 +258,7 @@ namespace mwmp isWerewolf = false; displayCreatureName = false; resetStats = false; + enforcedLogLevel = -1; } BasePlayer() diff --git a/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp b/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp index f2564f4c7..e99e69d03 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp @@ -25,7 +25,7 @@ void PacketPlayerAttribute::Packet(RakNet::BitStream *bs, bool send) player->attributeIndexChanges.resize(count); } - for (auto &&attributeIndex : player->attributeIndexChanges) + for (auto &&attributeIndex : player->attributeIndexChanges) { RW(attributeIndex, send); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerSkill.cpp b/components/openmw-mp/Packets/Player/PacketPlayerSkill.cpp index e204e8ba6..205098ef3 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerSkill.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerSkill.cpp @@ -1,7 +1,3 @@ -// -// Created by koncord on 17.03.16. -// - #include "PacketPlayerSkill.hpp" #include @@ -31,7 +27,7 @@ void PacketPlayerSkill::Packet(RakNet::BitStream *bs, bool send) player->skillIndexChanges.resize(count); } - for (auto && skillId : player->skillIndexChanges) + for (auto &&skillId : player->skillIndexChanges) { RW(skillId, send); RW(player->npcStats.mSkills[skillId], send);