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

pull/168/head
David Cernat 8 years ago
parent fb34e2c4ba
commit 586a7f6656

@ -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);
}

Loading…
Cancel
Save