Changeset 6687 in orxonox.OLD for branches/network/src/world_entities/world_entity.cc
- Timestamp:
- Jan 25, 2006, 11:27:35 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/world_entity.cc
r6634 r6687 54 54 this->energyMax = 1.0f; 55 55 this->energy = 1.0f; 56 this->scaling = 1.0f; 57 58 /* OSOLETE */ 59 this->bVisible = true; 60 this->bCollide = true; 56 61 57 62 this->md2TextureFileName = NULL; 58 59 60 this->setVisibiliy(true);61 63 62 64 this->objectListNumber = OM_INIT; … … 122 124 void WorldEntity::loadModel(const char* fileName, float scaling, unsigned int modelNumber) 123 125 { 126 this->modelLODName = fileName; 124 127 this->scaling = scaling; 125 128 if ( fileName != NULL && strcmp(fileName, "") ) … … 511 514 SYNCHELP_READ_FKT( PNode::writeState ); 512 515 513 SYNCHELP_READ_STRINGM( modelFileName );516 SYNCHELP_READ_STRINGM( this->modelLODName ); 514 517 SYNCHELP_READ_FLOAT( scaling ); 515 518 //check if modelFileName is relative to datadir or absolute 516 519 520 521 PRINTF(0)("================ LOADING MODEL %s, %f\n", modelFileName, scaling); 522 517 523 if ( strcmp(modelFileName, "") ) 518 524 { 519 loadModel( modelFileName, scaling 525 loadModel( modelFileName, scaling); 520 526 } 521 527 delete[] modelFileName;
Note: See TracChangeset
for help on using the changeset viewer.