Changeset 10203 in orxonox.OLD for branches/mount_points/src/world_entities/world_entity.cc
- Timestamp:
- Jan 10, 2007, 11:46:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/world_entities/world_entity.cc
r10202 r10203 278 278 PRINTF(0)("loading the oif File: %s\n", fileName.c_str()); 279 279 280 281 280 // first get all mount points from the model 282 281 const std::list<mountPointSkeleton> mpList = model->getMountPoints(); … … 287 286 { 288 287 MountPoint* mp = new MountPoint( (*it).up, (*it).forward, (*it).center, (*it).name); 289 288 // now get the number and add the mount point to the slot 290 289 std::string nrStr = (*it).name.substr(3, 2); 291 292 PRINTF(0)("got mp nr: %s\n", nrStr.c_str()); 293 294 this->addMountPoint(mp); 290 this->addMountPoint(atoi(nrStr.c_str()), mp); 295 291 } 296 292 297 293 // now load the object information file 298 294 this->oiFile = new ObjectInformationFile(fileName); 299 300 PRINTF(0)("\n");301 302 303 295 304 296 } … … 367 359 if( this->mountPoints[slot] != NULL) 368 360 { 369 PRINTF(0)("adding a mount point to a slot, that already exists! ignoring - maybe some object do not get connected well (object: %s)\n", this->getClassCName());361 PRINTF(0)("adding a mount point to a slot, that already is occupied! ignoring - maybe some object do not get connected well (object: %s)\n", this->getClassCName()); 370 362 } 371 363
Note: See TracChangeset
for help on using the changeset viewer.