Changeset 6498 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Jan 11, 2006, 9:58:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r6440 r6498 491 491 492 492 493 494 495 /******************************************************************************************** 496 NETWORK STUFF 497 ********************************************************************************************/ 498 499 493 500 /** 494 501 * Writes data from network containing information about the state … … 523 530 524 531 SYNCHELP_READ_STRINGM( modelFileName ); 532 525 533 if ( strcmp(modelFileName, "") ) 526 this->md2TextureFileName = modelFileName; 534 if ( strstr(modelFileName, ResourceManager::getInstance()->getDataDir()) ) 535 { 536 this->md2TextureFileName = new char[strlen(modelFileName)-strlen(ResourceManager::getInstance()->getDataDir())+1]; 537 strcpy((char*)this->md2TextureFileName, modelFileName+strlen(ResourceManager::getInstance()->getDataDir())); 538 } 539 else 540 { 541 this->md2TextureFileName = modelFileName; 542 } 527 543 528 544 return SYNCHELP_READ_N; 529 545 } 546 530 547 531 548 /**
Note: See TracChangeset
for help on using the changeset viewer.