From 5e62c4e0694028d3402b01975d3f290352bcf6de Mon Sep 17 00:00:00 2001 From: boyu0 Date: Thu, 29 May 2014 15:16:11 +0800 Subject: [PATCH] closed #5392: add comment for unscheduleUpdate() at schedulePerFrame() --- cocos/base/CCScheduler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/base/CCScheduler.cpp b/cocos/base/CCScheduler.cpp index 5b692f90cf..c757562de5 100644 --- a/cocos/base/CCScheduler.cpp +++ b/cocos/base/CCScheduler.cpp @@ -477,6 +477,7 @@ void Scheduler::schedulePerFrame(const ccSchedulerFunc& callback, void *target, } else { + // unschedule it and add it back later. unscheduleUpdate(target); } }