mirror of https://github.com/axmolengine/axmol.git
Merge branch 'track' of https://github.com/leon-li/cocos2d-x into leon-li-track
This commit is contained in:
commit
6043008a11
|
@ -198,8 +198,8 @@ void CCScheduler::unscheduleAllTimers()
|
|||
|
||||
void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget, float fInterval, bool bPaused)
|
||||
{
|
||||
assert(pfnSelector != NULL);
|
||||
assert(pTarget != NULL);
|
||||
assert(pfnSelector);
|
||||
assert(pTarget);
|
||||
|
||||
tHashSelectorEntry *pElement = NULL;
|
||||
HASH_FIND_INT(m_pHashForSelectors, &pTarget, pElement);
|
||||
|
@ -256,13 +256,13 @@ void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *p
|
|||
void CCScheduler::unscheduleSelector(SEL_SCHEDULE pfnSelector, SelectorProtocol *pTarget)
|
||||
{
|
||||
// explicity handle nil arguments when removing an object
|
||||
if (pTarget == NULL || pfnSelector == NULL)
|
||||
if (pTarget == 0 || pfnSelector == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
assert(pTarget != NULL);
|
||||
assert(pfnSelector != NULL);
|
||||
assert(pTarget);
|
||||
assert(pfnSelector);
|
||||
|
||||
tHashSelectorEntry *pElement = NULL;
|
||||
HASH_FIND_INT(m_pHashForSelectors, &pTarget, pElement);
|
||||
|
|
|
@ -851,7 +851,7 @@ void CCNode::schedule(SEL_SCHEDULE selector, ccTime interval)
|
|||
void CCNode::unschedule(SEL_SCHEDULE selector)
|
||||
{
|
||||
// explicit nil handling
|
||||
if (selector == NULL)
|
||||
if (selector == 0)
|
||||
return;
|
||||
|
||||
CCScheduler::sharedScheduler()->unscheduleSelector(selector, this);
|
||||
|
|
|
@ -171,7 +171,7 @@ typedef enum {
|
|||
|
||||
class CCLabel;
|
||||
class CCScene;
|
||||
class cocos2d::CCXEGLView;
|
||||
class CCXEGLView;
|
||||
|
||||
/**
|
||||
@brief Class that creates and handle the main Window and manages how
|
||||
|
|
|
@ -64,5 +64,5 @@ protected:
|
|||
|
||||
}//namespace cocos2d
|
||||
|
||||
#endif __CCRADIAL_TRANSITION_H__
|
||||
#endif //__CCRADIAL_TRANSITION_H__
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ THE SOFTWARE.
|
|||
#include "NSSet.h"
|
||||
#include "CCDirector.h"
|
||||
#include "ccMacros.h"
|
||||
#include "CCTouchDispatcher.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue