Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5357 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.cc


Ignore:
Timestamp:
Oct 10, 2005, 9:15:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some minor cleanup, of the mess i made with AutoMake-sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.cc

    r5356 r5357  
    169169void Weapon::prepareProjectiles(unsigned int count)
    170170{
    171   if (this->projectileFactory != NULL)
     171  if (likely(this->projectileFactory != NULL))
    172172    projectileFactory->prepare(count);
    173173  else
    174     PRINTF(2)("unable to create %d projectile for Weapon %s\n", count, this->getName());
     174    PRINTF(2)("unable to create %d projectile for Weapon %s (%s)\n", count, this->getName(), this->getClassName());
    175175}
    176176
     
    181181Projectile* Weapon::getProjectile()
    182182{
    183   if (this->projectileFactory)
     183  if (likely (this->projectileFactory != NULL))
    184184    return dynamic_cast<Projectile*>(this->projectileFactory->resurrect());
    185185  else
    186186  {
    187     PRINTF(2)("No projectile defined for Weapon %s cant return any\n", this->getName());
     187    PRINTF(2)("No projectile defined for Weapon %s(%s) cant return any\n", this->getName(), this->getClassName());
    188188    return NULL;
    189189  }
Note: See TracChangeset for help on using the changeset viewer.