Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 2:10:27 PM (19 years ago)
Author:
bottac
Message:

further bugs fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/bsp_entity.cc

    r8904 r8907  
    3939BspEntity::~BspEntity ()
    4040{
    41   if( this->bspManager)
     41  if( this->bspManager != NULL)
    4242    delete this->bspManager;
    4343}
     
    5151void BspEntity::init()
    5252{
    53   this->setClassID(CL_BSP_ENTITY, "BspEntity");
     53
    5454  this->bspManager = NULL;
    5555  /**
     
    6464
    6565  // Check wether file exists....
    66   if ( File(ResourceManager::getFullName(name)).exists()  ){
    67     // War das Laden erfolgreich?
     66  if ( File(ResourceManager::getFullName(name)).exists()  ) {
     67
     68    this->setClassID(CL_BSP_ENTITY, "BspEntity");
    6869    this->bspManager = new BspManager(this);
     70
    6971    if(this->bspManager->load(name.c_str(), 0.1f) == -1 ) {
    7072      this->bspManager = NULL;
    71       // Dont do anything
     73
    7274    } else {
    73 
    74      
    7575      this->toList(OM_ENVIRON); // Success!!!
    7676    }
    7777  } else {
     78    this->bspManager = NULL;
    7879    this->toList(OM_DEAD);
    7980  }
Note: See TracChangeset for help on using the changeset viewer.