Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Location:
trunk/src/world_entities/weapons
Files:
6 edited

Legend:

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

    r5280 r5357  
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1717
    1818#include "crosshair.h"
  • trunk/src/world_entities/weapons/projectile.cc

    r5063 r5357  
    1515   co-programmer:
    1616*/
    17 
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1818
    1919#include "projectile.h"
  • trunk/src/world_entities/weapons/test_bullet.cc

    r5257 r5357  
    1515   co-programmer:
    1616*/
    17 
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1818
    1919#include "test_bullet.h"
  • trunk/src/world_entities/weapons/test_gun.cc

    r5356 r5357  
    1919   @todo: a target to set/hit
    2020*/
    21 
     21#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    2222
    2323#include "test_gun.h"
  • trunk/src/world_entities/weapons/turret.cc

    r5356 r5357  
    1313   co-programmer:
    1414*/
    15 
     15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1616
    1717#include "turret.h"
  • 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.