Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5356 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc


Ignore:
Timestamp:
Oct 10, 2005, 8:17:44 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: saver Weapon-Projectile-generation and Stuff

File:
1 edited

Legend:

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

    r5355 r5356  
    2828
    2929#include "factory.h"
    30 #include "fast_factory.h"
    3130
    3231CREATE_FACTORY(Turret);
     
    9392
    9493
    95   this->setProjectile(CL_TEST_BULLET);
     94  this->setProjectileType(CL_TEST_BULLET);
    9695
    9796
     
    133132void Turret::fire()
    134133{
    135   Projectile* pj =  dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect());
     134  Projectile* pj = this->getProjectile();
     135  if (pj == NULL)
     136    return;
    136137
    137138  PNode* target = this->getWeaponManager()->getFixedTarget();
Note: See TracChangeset for help on using the changeset viewer.