mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1813 from dumganhar/gles20
Fixed a compilation error for android.
This commit is contained in:
commit
90960cce57
|
@ -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);
|
||||||
|
|
|
@ -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"); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue