Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5212 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Sep 21, 2005, 8:07:51 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some little errors corrected via Valgrind

Location:
trunk/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/player.cc

    r5162 r5212  
    141141  PRINTF(1)("PLAYER INIT\n");
    142142  travelSpeed = 15.0;
    143   velocity = new Vector();
    144143  bUp = bDown = bLeft = bRight = bAscend = bDescend = false;
    145144  bFire = false;
  • trunk/src/world_entities/player.h

    r4975 r5212  
    6666    WeaponManager*        weaponMan;          //!< the weapon manager: managing a list of weapon to wepaon-slot mapping
    6767
    68     Vector*               velocity;           //!< the velocity of the player.
     68    Vector                velocity;           //!< the velocity of the player.
    6969    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
    7070    float                 acceleration;       //!< the acceleration of the player.
  • trunk/src/world_entities/skybox.cc

    r5155 r5212  
    102102    delete this->material[i];
    103103  delete []this->material;
     104  delete this->model;
    104105}
    105106
  • trunk/src/world_entities/weapons/crosshair.cc

    r4955 r5212  
    162162  //cout << z << endl;
    163163
    164   GLdouble objX, objY, objZ;
     164  GLdouble objX=.0, objY=.0, objZ=.0;
    165165  gluUnProject(position2D[0],
    166166               GraphicsEngine::getInstance()->getResolutionY()-position2D[1]-1,
Note: See TracChangeset for help on using the changeset viewer.