Do better

This commit is contained in:
Lirusaito
2019-03-18 15:26:18 -04:00
parent bb26127ed5
commit d235e045d8

View File

@@ -327,10 +327,7 @@ void wlfPanel_AdvSettings::onChangeDayTime(const LLSD& value)
inst.mAnimator.deactivate();
F32 val = value.asFloat() + 0.25f;
if(val > 1.0)
{
val--;
}
if (val > 1.0f) --val;
inst.mAnimator.setDayTime((F64)val);
inst.mAnimator.update(inst.mCurParams);