Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10546 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Jan 31, 2007, 5:44:06 AM (17 years ago)
Author:
patrick
Message:

debug, and better slot pos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r10540 r10546  
    426426void WorldEntity::addMountPoint(int slot, MountPoint* mountPoint)
    427427{
    428   if( this->mountPointMap.find(slot) == this->mountPointMap.end())
     428  if( this->mountPointMap.find(slot) != this->mountPointMap.end())
    429429  {
    430430    PRINTF(2)("adding a mount point to a slot, that already is occupied! ignoring - maybe some object did not get connected well (object: %s)\n", this->getClassCName());
     
    442442void WorldEntity::mount(int slot, WorldEntity* entity)
    443443{
    444   if( this->mountPointMap.find(slot) == this->mountPointMap.end())
     444  if( this->mountPointMap.find(slot) != this->mountPointMap.end())
    445445  {
    446446    PRINTF(0)("you tried to add an entity to a mount point that doesn't exist (slot %i)\n", slot);
Note: See TracChangeset for help on using the changeset viewer.