Merge pull request #410 from TES3MP/0.6.3 while resolving conflicts

Conflicts:
	apps/openmw-mp/Script/Functions/Actors.cpp
	apps/openmw-mp/Script/Functions/Chat.cpp
	apps/openmw-mp/Script/Functions/GUI.hpp
	apps/openmw-mp/Script/Functions/Items.cpp
	apps/openmw-mp/Script/Functions/Stats.cpp
	apps/openmw-mp/Script/Functions/Stats.hpp
	apps/openmw-mp/Script/ScriptFunctions.cpp
	apps/openmw-mp/Script/ScriptFunctions.hpp
	apps/openmw-mp/processors/player/ProcessorPlayerCharGen.hpp
	apps/openmw/mwmp/Cell.cpp
	apps/openmw/mwmp/DedicatedActor.cpp
	apps/openmw/mwmp/DedicatedPlayer.cpp
	apps/openmw/mwmp/LocalActor.cpp
	apps/openmw/mwmp/LocalPlayer.cpp
	apps/openmw/mwmp/LocalPlayer.hpp
	apps/openmw/mwmp/Main.cpp
	components/openmw-mp/Base/BaseActor.hpp
	components/openmw-mp/Base/BasePlayer.hpp
	components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp
	components/openmw-mp/Packets/Player/PacketPlayerSkill.cpp
sol2-server-rewrite
David Cernat 7 years ago
commit d58efde3f1

@ -705,10 +705,22 @@ namespace MWGui
{ {
MWBase::Environment::get().getWindowManager()->pushGuiMode(GM_Review); 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) else if (mCreationStage >= currentStage)
{ {
MWBase::Environment::get().getWindowManager()->pushGuiMode((GuiMode)nextMode); MWBase::Environment::get().getWindowManager()->pushGuiMode((GuiMode)nextMode);
} }
*/
/*
End of tes3mp change (major)
*/
else else
{ {
mCreationStage = currentStage; mCreationStage = currentStage;

@ -49,7 +49,6 @@ LocalPlayer::LocalPlayer()
charGenState.isFinished = false; charGenState.isFinished = false;
difficulty = 0; difficulty = 0;
enforcedLogLevel = -1;
physicsFramerate = 60.0; physicsFramerate = 60.0;
consoleAllowed = false; consoleAllowed = false;
bedRestAllowed = true; bedRestAllowed = true;

@ -1,7 +1,3 @@
//
// Created by koncord on 14.01.16.
//
#ifndef OPENMW_LOCALPLAYER_HPP #ifndef OPENMW_LOCALPLAYER_HPP
#define OPENMW_LOCALPLAYER_HPP #define OPENMW_LOCALPLAYER_HPP
@ -21,7 +17,7 @@ namespace mwmp
void update(); void update();
bool processCharGen(); // return true if CGStage::current == CGStage::end bool processCharGen();
bool hasFinishedCharGen(); bool hasFinishedCharGen();
void updateStatsDynamic(bool forceUpdate = false); void updateStatsDynamic(bool forceUpdate = false);

@ -212,6 +212,7 @@ void Main::frame(float dt)
void Main::updateWorld(float dt) const void Main::updateWorld(float dt) const
{ {
if (!mLocalPlayer->processCharGen()) if (!mLocalPlayer->processCharGen())
return; return;

@ -258,6 +258,7 @@ namespace mwmp
isWerewolf = false; isWerewolf = false;
displayCreatureName = false; displayCreatureName = false;
resetStats = false; resetStats = false;
enforcedLogLevel = -1;
} }
BasePlayer() BasePlayer()

@ -25,7 +25,7 @@ void PacketPlayerAttribute::Packet(RakNet::BitStream *bs, bool send)
player->attributeIndexChanges.resize(count); player->attributeIndexChanges.resize(count);
} }
for (auto &&attributeIndex : player->attributeIndexChanges) for (auto &&attributeIndex : player->attributeIndexChanges)
{ {
RW(attributeIndex, send); RW(attributeIndex, send);

@ -1,7 +1,3 @@
//
// Created by koncord on 17.03.16.
//
#include "PacketPlayerSkill.hpp" #include "PacketPlayerSkill.hpp"
#include <components/openmw-mp/NetworkMessages.hpp> #include <components/openmw-mp/NetworkMessages.hpp>
@ -31,7 +27,7 @@ void PacketPlayerSkill::Packet(RakNet::BitStream *bs, bool send)
player->skillIndexChanges.resize(count); player->skillIndexChanges.resize(count);
} }
for (auto && skillId : player->skillIndexChanges) for (auto &&skillId : player->skillIndexChanges)
{ {
RW(skillId, send); RW(skillId, send);
RW(player->npcStats.mSkills[skillId], send); RW(player->npcStats.mSkills[skillId], send);

Loading…
Cancel
Save