Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10444 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 28, 2007, 3:24:19 PM (18 years ago)
Author:
snellen
Message:


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10443 r10444  
    6464    this->loadParams(root);
    6565
    66   if( this->bAIEnabled)
     66  if( this->bAIEnabled && ! this->entityTrack)
    6767  {
    6868    std::cout << "Team Number: " << teamNumber << "\n";
    6969    std::cout << "Swarm Number:" << swarmNumber << "\n";
    7070
    71     if( this->entityTrack)
     71    AIEngine::getInstance()->addAI(teamNumber,swarmNumber,(WorldEntity*)this,maxSpeed,attackDistance);
     72  }
     73
     74  this->bFire = false;
     75  if( this->entityTrack)
    7276      this->setParent(this->entityTrack->getTrackNode());
    73     else
    74       AIEngine::getInstance()->addAI(teamNumber,swarmNumber,(WorldEntity*)this,maxSpeed,attackDistance);
    75   }
    76 
    77   this->bFire = false;
    7877
    7978
Note: See TracChangeset for help on using the changeset viewer.