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:
parent
fb34e2c4ba
commit
586a7f6656
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue