Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9027 in orxonox.OLD for trunk/src/world_entities/npcs


Ignore:
Timestamp:
Jul 3, 2006, 11:30:17 AM (18 years ago)
Author:
patrick
Message:

npc does not yet move again. strange

File:
1 edited

Legend:

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

    r9026 r9027  
    185185void GenericNPC::initNPC()
    186186{
     187
     188  this->unsubscribeReaction();
     189
    187190  if (!this->behaviourList.empty())
    188191  {
     
    473476          Vector dest = currentAnimation.v - this->getAbsCoor();
    474477          if (dest.len() < .5)
     478          {
    475479            this->nextStep();
     480          }
    476481          else
    477482          {
    478483            dest.y = 0.0f;
    479484            this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt);
    480 
    481485          }
    482486        }
Note: See TracChangeset for help on using the changeset viewer.