diff --git a/src/Actor.cpp b/src/Actor.cpp index c8f4f53a0d..8144e5f636 100644 --- a/src/Actor.cpp +++ b/src/Actor.cpp @@ -911,6 +911,8 @@ void Actor::UpdateInternal(float delta_time) case CLOCK_TIMER: m_fSecsIntoEffect += delta_time; m_fEffectDelta = delta_time; + // Wrap the counter, so it doesn't increase indefinitely (causing loss + // of precision if a screen is left to sit for a day). if (m_fSecsIntoEffect > effectPeriod) { m_fSecsIntoEffect -= effectPeriod;