Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5219 in orxonox.OLD


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

orxonox/trunk: warlord-fix

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/spatial_separation/quadtree.cc

    r5218 r5219  
    8787    for (unsigned int i = 0; i < QUADTREE_MATERIAL_COUNT; i++)
    8888      delete this->materials[i];
    89     delete this->materials;
     89    delete[] this->materials;
    9090  }
    9191
  • trunk/src/orxonox.cc

    r5216 r5219  
    194194  GraphicsEngine::getInstance()->initFromIniFile(this->iniParser);
    195195
    196   char* icon = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp");
    197   GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, icon);
    198   delete[] icon;
     196  char* iconName = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp");
     197  GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, iconName);
     198  delete[] iconName;
    199199  return 0;
    200200}
  • trunk/src/util/resource_manager.cc

    r5216 r5219  
    740740 * @param fileName the Name of the File to check
    741741 * @returns The full name of the file, including the DataDir, and NULL if the file does not exist
    742  *  IMPORTANT: this has to be deleted from the outside
     742 * !!IMPORTANT: this has to be deleted from the outside!!
    743743*/
    744744char* ResourceManager::getFullName(const char* fileName)
  • 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.