Merge pull request #1813 from dumganhar/gles20

Fixed a compilation error for android.
This commit is contained in:
James Chen 2013-01-03 04:00:54 -08:00
commit 90960cce57
2 changed files with 4 additions and 4 deletions

View File

@ -794,7 +794,7 @@ void CCScheduler::update(float dt)
{ {
if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType()) if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType())
{ {
pEngine->executeSchedule(NULL, dt, (CCNode *)pEntry->target); pEngine->executeSchedule(0, dt, (CCNode *)pEntry->target);
} }
pEntry->target->update(dt); pEntry->target->update(dt);
@ -808,7 +808,7 @@ void CCScheduler::update(float dt)
{ {
if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType()) if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType())
{ {
pEngine->executeSchedule(NULL, dt, (CCNode *)pEntry->target); pEngine->executeSchedule(0, dt, (CCNode *)pEntry->target);
} }
pEntry->target->update(dt); pEntry->target->update(dt);
@ -822,7 +822,7 @@ void CCScheduler::update(float dt)
{ {
if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType()) if (pEngine != NULL && kScriptTypeJavascript == pEngine->getScriptType())
{ {
pEngine->executeSchedule(NULL, dt, (CCNode *)pEntry->target); pEngine->executeSchedule(0, dt, (CCNode *)pEntry->target);
} }
pEntry->target->update(dt); pEntry->target->update(dt);

View File

@ -8,7 +8,7 @@ if (! (cond)) \
{ \ { \
char content[256]; \ char content[256]; \
sprintf(content, "%s function:%s line:%d", __FILE__, __FUNCTION__, __LINE__); \ sprintf(content, "%s function:%s line:%d", __FILE__, __FUNCTION__, __LINE__); \
CCMessageBox(content, "Assert error"); \ cocos2d::CCMessageBox(content, "Assert error"); \
} }