Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6688 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jan 25, 2006, 1:59:02 PM (19 years ago)
Author:
rennerc
Message:

spaceship: hack: load default model

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

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6672 r6688  
    9797  if (root != NULL)
    9898    this->loadParams(root);
     99  else
     100  {
     101    this->loadModel("models/ships/reap_#.obj");
     102  }
     103
    99104}
    100105
  • branches/network/src/world_entities/world_entity.cc

    r6687 r6688  
    336336    else if (this->models.size() >= 1 && this->models[0] != NULL)
    337337    {
     338        printf("draw %s\n", this->models[0]->getName());
    338339      this->models[0]->draw();
    339340    }
     
    514515  SYNCHELP_READ_FKT( PNode::writeState );
    515516
    516   SYNCHELP_READ_STRINGM( this->modelLODName );
     517  SYNCHELP_READ_STRINGM( modelFileName );
    517518  SYNCHELP_READ_FLOAT( scaling );
    518519  //check if modelFileName is relative to datadir or absolute
     
    524525  {
    525526    loadModel( modelFileName, scaling);
     527    PRINTF(0)("modelfilename: %s\n", getModel( 0 )->getName());
    526528  }
    527529  delete[] modelFileName;
Note: See TracChangeset for help on using the changeset viewer.