Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2006, 10:30:06 AM (17 years ago)
Author:
patrick
Message:

mount point connection

File:
1 edited

Legend:

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

    r10056 r10057  
    322322void WorldEntity::addMountPoint(MountPoint* mountPoint)
    323323{
     324  // add the mount point at the last position
     325  this->mountPoints.push_back(mountPoint);
    324326}
    325327
     
    330332void WorldEntity::addMountPoint(int slot, MountPoint* mountPoint)
    331333{
    332 
     334  if( this->mountPoints[slot] != NULL)
     335  {
     336    PRINTF(0)("adding a mount point to a slot, that already exists! ignoring - maybe some object do not get connected well (object: %s)", this->getClassCName());
     337  }
     338
     339  // just connect the mount point
     340  this->mountPoints[slot] = mountPoint;
    333341}
    334342
Note: See TracChangeset for help on using the changeset viewer.