Changeset 6277 in orxonox.OLD for branches/network/src/world_entities/world_entity.cc
- Timestamp:
- Dec 24, 2005, 3:27:23 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/world_entity.cc
r6142 r6277 58 58 59 59 this->toList(OM_NULL); 60 61 strncpy( modelFileName, "", 1024 ); 60 62 } 61 63 … … 101 103 void WorldEntity::loadModel(const char* fileName, float scaling, unsigned int modelNumber) 102 104 { 103 if (fileName != NULL) 104 { 105 if ( fileName != NULL && strcmp(fileName, "") ) 106 { 107 strncpy( modelFileName, fileName, 1024 ); 105 108 // search for the special character # in the LoadParam 106 109 if (strchr(fileName, '#') != NULL) … … 129 132 } 130 133 else 134 { 135 strncpy( modelFileName, "", 1024 ); 131 136 this->setModel(NULL); 137 } 132 138 } 133 139
Note: See TracChangeset
for help on using the changeset viewer.