Changeset 9027 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
 - Jul 3, 2006, 11:30:17 AM (19 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          trunk/src/world_entities/npcs/generic_npc.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/src/world_entities/npcs/generic_npc.cc
r9026 r9027 185 185 void GenericNPC::initNPC() 186 186 { 187 188 this->unsubscribeReaction(); 189 187 190 if (!this->behaviourList.empty()) 188 191 { … … 473 476 Vector dest = currentAnimation.v - this->getAbsCoor(); 474 477 if (dest.len() < .5) 478 { 475 479 this->nextStep(); 480 } 476 481 else 477 482 { 478 483 dest.y = 0.0f; 479 484 this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt); 480 481 485 } 482 486 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






