Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2006, 11:48:40 PM (18 years ago)
Author:
nicolasc
Message:

Working SwarmMissile guidance system
CD/CR needs update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/swarm_launcher.cc

    r10079 r10080  
    1919#include "weapon_manager.h"
    2020#include "world_entities/projectiles/projectile.h"
     21#include "world_entities/projectiles/swarm_projectile.h"
    2122
    2223#include "model.h"
     
    158159      pj->setAbsCoor(this->getEmissionPoint());
    159160      pj->setAbsDir(this->getAbsDir());
    160       pj->setTarget( dynamic_cast<WorldEntity*>(*eIterator));
     161      dynamic_cast<SwarmProjectile*>(pj)->setTarget( (PNode*)(*eIterator) );
    161162      pj->activate();
    162163
Note: See TracChangeset for help on using the changeset viewer.