coverity_scan^2
David Cernat 8 years ago
commit 5a22032a41

@ -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…
Cancel
Save