Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6294 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Dec 26, 2005, 2:29:09 AM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r6293 r6294  
    340340  SYNCHELP_READ_BEGIN();
    341341  SYNCHELP_READ_STRINGM( modelFileName );
    342   PRINTF(0)("%s\n", modelFileName );
    343   loadModel( modelFileName );
    344   delete modelFileName;
     342  //check if modelFileName is relative to datadir or absolute
     343  if ( strstr(modelFileName, ResourceManager::getInstance()->getDataDir()) )
     344  {
     345    loadModel( modelFileName+strlen(ResourceManager::getInstance()->getDataDir()) );
     346  }
     347  else
     348  {
     349    loadModel( modelFileName );
     350  }
     351  delete[] modelFileName;
    345352}
    346353
Note: See TracChangeset for help on using the changeset viewer.