Changeset 9145 in orxonox.OLD for branches/presentation/src/world_entities/npcs
- Timestamp:
- Jul 4, 2006, 3:42:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/generic_npc.cc
r9142 r9145 207 207 * each animation has to be initialized here 208 208 */ 209 /** 210 * 211 */ 209 212 void GenericNPC::initNPC() 210 213 { … … 217 220 case Walk: 218 221 { 219 if( this->getAnimation() != WALK)220 this->setAnimation( WALK, MD2_ANIM_LOOP);222 if( this->getAnimation() != RUN) 223 this->setAnimation(RUN, MD2_ANIM_LOOP); 221 224 222 225 Vector dir = (currentAnimation.v - this->getAbsCoor()); … … 289 292 case Walk: 290 293 { 291 if( this->getAnimation() != WALK)292 this->setAnimation( WALK, MD2_ANIM_LOOP);294 if( this->getAnimation() != RUN) 295 this->setAnimation(RUN, MD2_ANIM_LOOP); 293 296 294 297
Note: See TracChangeset
for help on using the changeset viewer.