Changeset 6695 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Jan 25, 2006, 2:39:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r6634 r6695 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, "") ) … … 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); 526 PRINTF(0)("modelfilename: %s\n", getModel( 0 )->getName()); 520 527 } 521 528 delete[] modelFileName;
Note: See TracChangeset
for help on using the changeset viewer.