Changeset 6294 in orxonox.OLD
- Timestamp:
- Dec 26, 2005, 2:29:09 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/world_entity.cc
r6293 r6294 340 340 SYNCHELP_READ_BEGIN(); 341 341 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; 345 352 } 346 353
Note: See TracChangeset
for help on using the changeset viewer.