forked from mirror/openmw-tes3mp
Merge branch 'master' of https://github.com/TES3MP/openmw-tes3mp
This commit is contained in:
commit
5a22032a41
1 changed files with 3 additions and 5 deletions
|
@ -148,10 +148,7 @@ bool LocalPlayer::charGenThread()
|
|||
|
||||
bool LocalPlayer::hasFinishedCharGen()
|
||||
{
|
||||
if (charGenStage.end == 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return charGenStage.end == 0;
|
||||
}
|
||||
|
||||
void LocalPlayer::updateDynamicStats(bool forceUpdate)
|
||||
|
@ -168,8 +165,9 @@ void LocalPlayer::updateDynamicStats(bool forceUpdate)
|
|||
static MWMechanics::DynamicStat<float> oldFatigue(ptrCreatureStats->getFatigue());
|
||||
|
||||
static float timer = 0;
|
||||
const float timeoutSec = 0.5;
|
||||
|
||||
if ((timer += MWBase::Environment::get().getFrameDuration()) >= 0.5 || forceUpdate)
|
||||
if ((timer += MWBase::Environment::get().getFrameDuration()) >= timeoutSec || forceUpdate)
|
||||
{
|
||||
if (oldHealth != health || oldMagicka != magicka || oldFatigue != fatigue || forceUpdate)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue