Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10235


Ignore:
Timestamp:
Feb 1, 2015, 3:43:14 PM (9 years ago)
Author:
landauf
Message:

fixed build and warnings (MSVC)

Location:
code/branches/surfaceraceHS14/src/modules/dodgerace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace/DodgeRace.cc

    r10232 r10235  
    9595                        counter = counter + (currentPosition - lastPosition);
    9696                        lastPosition = currentPosition;
    97                         point = currentPosition;
    98                         getPlayer()->speed = 830 - (point / 1000);
    99 
    100                         for(uint i=0; i < cubeList.size();i++)
     97                        point = (int) currentPosition;
     98                        getPlayer()->speed = 830.0f - (point / 1000);
     99
     100                        for(unsigned int i=0; i < cubeList.size();i++)
    101101                        {
    102102                                if(cubeList.at(i)->getPosition().x < currentPosition-3000)
     
    123123                                        }
    124124
    125                                         cube->setPosition(getPlayer()->getWorldPosition() + Vector3(5000, 0, -3600 + (i*1200)));
     125                                        cube->setPosition(getPlayer()->getWorldPosition() + Vector3(5000.0f, 0.0f, -3600.0f + (i*1200)));
    126126                                        //stEntity->setScale3D(50,50,50);
    127127                                }
     
    169169        orxout() << "start" << endl;
    170170        init();
    171                 for(uint i=0; i< cubeList.size();i++)
     171                for(unsigned int i=0; i< cubeList.size();i++)
    172172                {
    173173                        cubeList.at(i)->destroy();
  • code/branches/surfaceraceHS14/src/modules/dodgerace/DodgeRace.h

    r10234 r10235  
    9898            int lives;
    9999            int multiplier;
    100             int counter;
     100            float counter;
    101101            int pattern;
    102             int currentPosition;
    103             int lastPosition;
     102            float currentPosition;
     103            float lastPosition;
    104104
    105105       private:
Note: See TracChangeset for help on using the changeset viewer.