Changeset 8490 in orxonox.OLD for trunk/src/world_entities/creatures
- Timestamp:
- Jun 15, 2006, 9:34:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/creatures/md2_creature.cc
r8362 r8490 21 21 22 22 #include "objModel.h" 23 #include "md2 Model.h"23 #include "md2/md2Model.h" 24 24 #include "util/loading/resource_manager.h" 25 25 #include "state.h" … … 256 256 if( this->bJump && likely(this->getModel(0) != NULL)) 257 257 { 258 ((MD2Model*)this->getModel(0))->setAnim (JUMP);258 ((MD2Model*)this->getModel(0))->setAnimation(JUMP); 259 259 } 260 260 else if( this->bFire && likely(this->getModel(0) != NULL)) 261 261 { 262 if( ((MD2Model*)this->getModel(0))->getAnim() != ATTACK) ((MD2Model*)this->getModel(0))->setAnim (ATTACK);262 if( ((MD2Model*)this->getModel(0))->getAnim() != ATTACK) ((MD2Model*)this->getModel(0))->setAnimation(ATTACK); 263 263 } 264 264 else if( fabs(move.len()) > 0.0f && likely(this->getModel(0) != NULL)) 265 265 { 266 if( ((MD2Model*)this->getModel(0))->getAnim() != RUN) ((MD2Model*)this->getModel(0))->setAnim (RUN);266 if( ((MD2Model*)this->getModel(0))->getAnim() != RUN) ((MD2Model*)this->getModel(0))->setAnimation(RUN); 267 267 } 268 268 else if (likely(this->getModel(0) != NULL)) 269 269 { 270 if( ((MD2Model*)this->getModel(0))->getAnim() != STAND) ((MD2Model*)this->getModel(0))->setAnim (STAND);270 if( ((MD2Model*)this->getModel(0))->getAnim() != STAND) ((MD2Model*)this->getModel(0))->setAnimation(STAND); 271 271 } 272 272
Note: See TracChangeset
for help on using the changeset viewer.