mirror of https://github.com/axmolengine/axmol.git
issue #531, Merge liswei/issue531 manually.
This commit is contained in:
parent
96996d4d52
commit
67ac46647f
|
@ -157,7 +157,7 @@ void CCTimer::update(ccTime dt)
|
||||||
|
|
||||||
if (m_fElapsed >= m_fInterval)
|
if (m_fElapsed >= m_fInterval)
|
||||||
{
|
{
|
||||||
if (m_pfnSelector)
|
if (NULL != m_pfnSelector)
|
||||||
{
|
{
|
||||||
(m_pTarget->*m_pfnSelector)(m_fElapsed);
|
(m_pTarget->*m_pfnSelector)(m_fElapsed);
|
||||||
m_fElapsed = 0;
|
m_fElapsed = 0;
|
||||||
|
@ -248,7 +248,6 @@ void CCScheduler::scheduleTimer(CCTimer *pTimer)
|
||||||
|
|
||||||
void CCScheduler::unscheduleTimer(CCTimer *pTimer)
|
void CCScheduler::unscheduleTimer(CCTimer *pTimer)
|
||||||
{
|
{
|
||||||
//CC_UNUSED_PARAM(pTimer);
|
|
||||||
pTimer = NULL;
|
pTimer = NULL;
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
@ -260,7 +259,7 @@ void CCScheduler::unscheduleAllTimers()
|
||||||
|
|
||||||
void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget, float fInterval, bool bPaused)
|
void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget, float fInterval, bool bPaused)
|
||||||
{
|
{
|
||||||
//assert(pfnSelector);
|
assert(pfnSelector);
|
||||||
assert(pTarget);
|
assert(pTarget);
|
||||||
|
|
||||||
tHashSelectorEntry *pElement = NULL;
|
tHashSelectorEntry *pElement = NULL;
|
||||||
|
|
Loading…
Reference in New Issue