1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

[Client] Prevent DedicatedPlayer from spawning on ground from 0 fatigue

This commit is contained in:
David Cernat 2017-02-23 04:35:07 +02:00
parent fb34e2c4ba
commit 586a7f6656

View file

@ -113,6 +113,10 @@ void Players::createPlayer(RakNet::RakNetGUID guid)
dedicPlayer->guid = guid; dedicPlayer->guid = guid;
dedicPlayer->state = 2; 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); world->enable(players[guid]->ptr);
} }