From 4948de6462ca288f0503422f1c66285ca4135b3f Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 10 Jun 2013 11:44:16 +0800 Subject: [PATCH] [VS2012] Warning fixes. --- .../Classes/ActionsTest/ActionsTest.cpp | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/samples/Cpp/TestCpp/Classes/ActionsTest/ActionsTest.cpp b/samples/Cpp/TestCpp/Classes/ActionsTest/ActionsTest.cpp index 0c86e304a1..7a1cd11826 100644 --- a/samples/Cpp/TestCpp/Classes/ActionsTest/ActionsTest.cpp +++ b/samples/Cpp/TestCpp/Classes/ActionsTest/ActionsTest.cpp @@ -1400,11 +1400,11 @@ void ActionMoveStacked::runActionsInSprite(CCSprite *sprite) sprite->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,10)), - CCMoveBy::create(0.05, ccp(-10,-10)), + CCMoveBy::create(0.05f, ccp(10,10)), + CCMoveBy::create(0.05f, ccp(-10,-10)), NULL))); - CCMoveBy* action = CCMoveBy::create(2, ccp(400,0)); + CCMoveBy* action = CCMoveBy::create(2.0f, ccp(400,0)); CCMoveBy* action_back = (CCMoveBy*)action->reverse(); sprite->runAction( @@ -1426,11 +1426,11 @@ void ActionMoveJumpStacked::runActionsInSprite(CCSprite *sprite) sprite->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,2)), - CCMoveBy::create(0.05, ccp(-10,-2)), + CCMoveBy::create(0.05f, ccp(10,2)), + CCMoveBy::create(0.05f, ccp(-10,-2)), 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(); sprite->runAction( @@ -1465,8 +1465,8 @@ void ActionMoveBezierStacked::runActionsInSprite(CCSprite *sprite) sprite->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,0)), - CCMoveBy::create(0.05, ccp(-10,0)), + CCMoveBy::create(0.05f, ccp(10,0)), + CCMoveBy::create(0.05f, ccp(-10,0)), NULL))); } @@ -1516,8 +1516,8 @@ void ActionCatmullRomStacked::onEnter() m_tamara->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,0)), - CCMoveBy::create(0.05, ccp(-10,0)), + CCMoveBy::create(0.05f, ccp(10,0)), + CCMoveBy::create(0.05f, ccp(-10,0)), NULL))); @@ -1548,8 +1548,8 @@ void ActionCatmullRomStacked::onEnter() m_kathia->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,0)), - CCMoveBy::create(0.05, ccp(-10,0)), + CCMoveBy::create(0.05f, ccp(10,0)), + CCMoveBy::create(0.05f, ccp(-10,0)), NULL))); @@ -1626,8 +1626,8 @@ void ActionCardinalSplineStacked::onEnter() m_tamara->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,0)), - CCMoveBy::create(0.05, ccp(-10,0)), + CCMoveBy::create(0.05f, ccp(10,0)), + CCMoveBy::create(0.05f, ccp(-10,0)), NULL))); @@ -1649,8 +1649,8 @@ void ActionCardinalSplineStacked::onEnter() m_kathia->runAction( CCRepeatForever::create( CCSequence::create( - CCMoveBy::create(0.05, ccp(10,0)), - CCMoveBy::create(0.05, ccp(-10,0)), + CCMoveBy::create(0.05f, ccp(10,0)), + CCMoveBy::create(0.05f, ccp(-10,0)), NULL)));