Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6634 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Jan 21, 2006, 1:18:19 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the network-branche back to the trunk

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6500:HEAD
minor conflicts in texture and one Makefile resolved to the trunk

also made a small patch to texture, so it Modulates with GL_REPEAT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r6512 r6634  
    517517  if ( strcmp(modelFileName, "") )
    518518  {
    519 
    520     if ( strstr(modelFileName, ResourceManager::getInstance()->getDataDir()) )
    521     {
    522       loadModel( modelFileName+strlen(ResourceManager::getInstance()->getDataDir()), scaling );
    523     }
    524     else
    525     {
    526       loadModel( modelFileName, scaling );
    527     }
     519    loadModel( modelFileName, scaling );
    528520  }
    529521  delete[] modelFileName;
    530522
    531   SYNCHELP_READ_STRINGM( modelFileName );
     523  /*SYNCHELP_READ_STRINGM( modelFileName );
    532524
    533525  if ( strcmp(modelFileName, "") )
     
    541533      this->md2TextureFileName = modelFileName;
    542534    }
     535  */
    543536
    544537  return SYNCHELP_READ_N;
     
    558551  SYNCHELP_WRITE_FKT( PNode::readState );
    559552
    560   SYNCHELP_WRITE_STRING( getModel( 0 )->getName() );
     553  if ( getModel(0) && getModel(0)->getName() )
     554  {
     555    char* name = (char*)(getModel( 0 )->getName());
     556
     557    if ( strstr(name, ResourceManager::getInstance()->getDataDir()) )
     558    {
     559      name += strlen(ResourceManager::getInstance()->getDataDir());
     560    }
     561
     562    SYNCHELP_WRITE_STRING( name );
     563  }
     564  else
     565  {
     566    SYNCHELP_WRITE_STRING("");
     567  }
     568
    561569  SYNCHELP_WRITE_FLOAT( scaling );
    562   if ( this->md2TextureFileName!=NULL && strcmp(this->md2TextureFileName, "") )
     570  /*if ( this->md2TextureFileName!=NULL && strcmp(this->md2TextureFileName, "") )
    563571  {
    564572    SYNCHELP_WRITE_STRING(this->md2TextureFileName);
     
    567575  {
    568576    SYNCHELP_WRITE_STRING("");
    569   }
     577}*/
    570578
    571579  return SYNCHELP_WRITE_N;
Note: See TracChangeset for help on using the changeset viewer.