From a079f9f8f29e38afdab3a3a05861593a393a6a4a Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Tue, 10 Oct 2017 08:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=99=A8=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Easy2D/Tool/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Easy2D/Tool/Timer.cpp b/Easy2D/Tool/Timer.cpp index 547f0b93..1c4a9692 100644 --- a/Easy2D/Tool/Timer.cpp +++ b/Easy2D/Tool/Timer.cpp @@ -88,7 +88,7 @@ void Timer::__exec() continue; } // 判断时间间隔是否足够 - if (duration_cast(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval) + while (duration_cast(GetNow() - timer->m_nLast).count() > timer->m_nAnimationInterval) { // 重新记录时间 timer->m_nLast += milliseconds(timer->m_nAnimationInterval);