From 586a7f665601d24d94972ec9150560db35ff6d47 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 23 Feb 2017 04:35:07 +0200 Subject: [PATCH] [Client] Prevent DedicatedPlayer from spawning on ground from 0 fatigue --- apps/openmw/mwmp/DedicatedPlayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index 3418b6530..20b32f0c9 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -113,6 +113,10 @@ void Players::createPlayer(RakNet::RakNetGUID guid) dedicPlayer->guid = guid; dedicPlayer->state = 2; + // Give this new character a fatigue of at least 1 so it doesn't spawn + // on the ground + dedicPlayer->creatureStats.mDynamic[2].mBase = 1; + world->enable(players[guid]->ptr); }