Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6687 in orxonox.OLD


Ignore:
Timestamp:
Jan 25, 2006, 11:27:35 AM (18 years ago)
Author:
patrick
Message:

network: war of the model names

Location:
branches/network/src/world_entities
Files:
2 edited

Legend:

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

    r6634 r6687  
    5454  this->energyMax = 1.0f;
    5555  this->energy = 1.0f;
     56  this->scaling = 1.0f;
     57
     58  /* OSOLETE */
     59  this->bVisible = true;
     60  this->bCollide = true;
    5661
    5762  this->md2TextureFileName = NULL;
    58 
    59 
    60   this->setVisibiliy(true);
    6163
    6264  this->objectListNumber = OM_INIT;
     
    122124void WorldEntity::loadModel(const char* fileName, float scaling, unsigned int modelNumber)
    123125{
     126  this->modelLODName = fileName;
    124127  this->scaling = scaling;
    125128  if ( fileName != NULL && strcmp(fileName, "") )
     
    511514  SYNCHELP_READ_FKT( PNode::writeState );
    512515
    513   SYNCHELP_READ_STRINGM( modelFileName );
     516  SYNCHELP_READ_STRINGM( this->modelLODName );
    514517  SYNCHELP_READ_FLOAT( scaling );
    515518  //check if modelFileName is relative to datadir or absolute
    516519
     520
     521  PRINTF(0)("================ LOADING MODEL %s, %f\n", modelFileName, scaling);
     522
    517523  if ( strcmp(modelFileName, "") )
    518524  {
    519     loadModel( modelFileName, scaling );
     525    loadModel( modelFileName, scaling);
    520526  }
    521527  delete[] modelFileName;
  • branches/network/src/world_entities/world_entity.h

    r6512 r6687  
    111111  std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
    112112  const char*             md2TextureFileName; //!< the file name of the md2 model texture, only if this
     113  const char*             modelLODName;       //!< the name of the model lod file
    113114  BVTree*                 obbTree;            //!< this is the obb tree reference needed for collision detection
    114115
Note: See TracChangeset for help on using the changeset viewer.