From 72463cfdb6197fb682644e8fea884e0b58e46a05 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 10 Apr 2018 12:49:11 +0300 Subject: [PATCH] [Client] Refresh equipment for DedicatedPlayers when setting base info Additionally, move default fatigue value to DedicatedPlayer initialization. --- apps/openmw/mwmp/DedicatedPlayer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index 9b6533dbc..78a068a7d 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -43,7 +43,12 @@ DedicatedPlayer::DedicatedPlayer(RakNet::RakNetGUID guid) : BasePlayer(guid) { reference = 0; attack.pressed = 0; + creatureStats.mDead = false; + // Give this new character a temporary high fatigue so it doesn't spawn on + // the ground + creatureStats.mDynamic[2].mBase = 1000; + movementFlags = 0; attack.instant = false; @@ -142,9 +147,7 @@ void DedicatedPlayer::setBaseInfo() std::string recId = getNpcRecordId(); createReference(recId); - // Give this new character a temporary high fatigue of at least 1 so it doesn't - // spawn on the ground - creatureStats.mDynamic[2].mBase = 1000; + setEquipment(); } void DedicatedPlayer::setShapeshift()