Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4979 in orxonox.OLD for orxonox/trunk/src/util/fast_factory.cc


Ignore:
Timestamp:
Aug 10, 2005, 4:47:23 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Objects now get cleanly ereased.
This is a fix in the Weapon-class, that kills the Resurected Projectiles created for information-gathering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/fast_factory.cc

    r4951 r4979  
    8181}
    8282
    83 
    8483/**
    8584 * searches for a FastFactory
     
    135134  while (tmpFac != NULL)
    136135  {
     136    printf("DELETEING ALL OF %s\n",tmpFac->getName());
    137137    tmpFac->flush(hardFLUSH);
    138138    tmpFac = tmpFac->next;
     
    140140}
    141141
    142 
    143142/**
    144143 * ereases all the remaining containers, without deleting the stored Objects inside of them.
     
    152151    delMember = tmpMember;
    153152    tmpMember = tmpMember->next;
    154     if (unlikely(hardFLUSH == true))
     153    if (hardFLUSH)
     154    {
     155      PRINTF(1)("COOL\n");
    155156      delete delMember->objectPointer;
     157    }
    156158    delete delMember;
    157159  }
     
    267269      tmpFac = tmpFac->next;
    268270    }
    269 
    270   }
    271 }
     271  }
     272}
Note: See TracChangeset for help on using the changeset viewer.