mirror of https://github.com/axmolengine/axmol.git
[VS2012] Warning fixes.
This commit is contained in:
parent
a14df8d28d
commit
4948de6462
|
@ -1400,11 +1400,11 @@ void ActionMoveStacked::runActionsInSprite(CCSprite *sprite)
|
||||||
sprite->runAction(
|
sprite->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,10)),
|
CCMoveBy::create(0.05f, ccp(10,10)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,-10)),
|
CCMoveBy::create(0.05f, ccp(-10,-10)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
CCMoveBy* action = CCMoveBy::create(2, ccp(400,0));
|
CCMoveBy* action = CCMoveBy::create(2.0f, ccp(400,0));
|
||||||
CCMoveBy* action_back = (CCMoveBy*)action->reverse();
|
CCMoveBy* action_back = (CCMoveBy*)action->reverse();
|
||||||
|
|
||||||
sprite->runAction(
|
sprite->runAction(
|
||||||
|
@ -1426,11 +1426,11 @@ void ActionMoveJumpStacked::runActionsInSprite(CCSprite *sprite)
|
||||||
sprite->runAction(
|
sprite->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,2)),
|
CCMoveBy::create(0.05f, ccp(10,2)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,-2)),
|
CCMoveBy::create(0.05f, ccp(-10,-2)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
CCJumpBy* jump = CCJumpBy::create(2, ccp(400,0), 100, 5);
|
CCJumpBy* jump = CCJumpBy::create(2.0f, ccp(400,0), 100, 5);
|
||||||
CCJumpBy* jump_back = (CCJumpBy*)jump->reverse();
|
CCJumpBy* jump_back = (CCJumpBy*)jump->reverse();
|
||||||
|
|
||||||
sprite->runAction(
|
sprite->runAction(
|
||||||
|
@ -1465,8 +1465,8 @@ void ActionMoveBezierStacked::runActionsInSprite(CCSprite *sprite)
|
||||||
sprite->runAction(
|
sprite->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,0)),
|
CCMoveBy::create(0.05f, ccp(10,0)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,0)),
|
CCMoveBy::create(0.05f, ccp(-10,0)),
|
||||||
NULL)));
|
NULL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1516,8 +1516,8 @@ void ActionCatmullRomStacked::onEnter()
|
||||||
m_tamara->runAction(
|
m_tamara->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,0)),
|
CCMoveBy::create(0.05f, ccp(10,0)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,0)),
|
CCMoveBy::create(0.05f, ccp(-10,0)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1548,8 +1548,8 @@ void ActionCatmullRomStacked::onEnter()
|
||||||
m_kathia->runAction(
|
m_kathia->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,0)),
|
CCMoveBy::create(0.05f, ccp(10,0)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,0)),
|
CCMoveBy::create(0.05f, ccp(-10,0)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1626,8 +1626,8 @@ void ActionCardinalSplineStacked::onEnter()
|
||||||
m_tamara->runAction(
|
m_tamara->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,0)),
|
CCMoveBy::create(0.05f, ccp(10,0)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,0)),
|
CCMoveBy::create(0.05f, ccp(-10,0)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1649,8 +1649,8 @@ void ActionCardinalSplineStacked::onEnter()
|
||||||
m_kathia->runAction(
|
m_kathia->runAction(
|
||||||
CCRepeatForever::create(
|
CCRepeatForever::create(
|
||||||
CCSequence::create(
|
CCSequence::create(
|
||||||
CCMoveBy::create(0.05, ccp(10,0)),
|
CCMoveBy::create(0.05f, ccp(10,0)),
|
||||||
CCMoveBy::create(0.05, ccp(-10,0)),
|
CCMoveBy::create(0.05f, ccp(-10,0)),
|
||||||
NULL)));
|
NULL)));
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue