Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2006, 12:25:54 AM (17 years ago)
Author:
patrick
Message:

more oif starting procedures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/world_entities/world_entity.cc

    r10052 r10053  
    7070  this->damage = 0.0f; // no damage dealt by a default entity
    7171  this->scaling = 1.0f;
     72  this->oiFile = NULL;
    7273
    7374  /* OSOLETE */
     
    104105  for (unsigned int i = 0; i < this->models.size(); i++)
    105106    this->setModel(NULL, i);
     107
     108  if( this->oiFile)
     109    delete this->oiFile;
    106110
    107111  // Delete the obbTree
     
    263267{
    264268  PRINTF(0)("loading the oif File: %s", fileName.c_str());
     269
     270  this->oiFile = new ObjectInformationFile(fileName);
    265271}
    266272
Note: See TracChangeset for help on using the changeset viewer.