Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Sep 23, 2005, 1:37:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: warlord-fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/crosshair.cc

    r5216 r5219  
    6969  this->setRotationSpeed(5);
    7070  this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0);
     71
     72  this->position2D[0] = 0;
     73  this->position2D[1] = 0;
    7174
    7275  this->material = new Material;
     
    158161
    159162
    160   float z;
     163  float z = 0.0f;
    161164  glReadPixels ((int)position2D[0], GraphicsEngine::getInstance()->getResolutionY()-(int)position2D[1]-1, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &z);
    162165  //cout << z << endl;
Note: See TracChangeset for help on using the changeset viewer.