Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 7:22:44 PM (19 years ago)
Author:
patrick
Message:

ground collision works again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/generic_npc.cc

    r9061 r9065  
    9393
    9494  // collision reaction registration
    95 //   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);
     95   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);
    9696}
    9797
     
    194194void GenericNPC::resume()
    195195{
    196   //if()
     196  if( this->animationStack.size() == 0)
     197    return;
     198
    197199  delete this->behaviourList;
    198200  this->behaviourList = this->animationStack.top();
     
    518520      {
    519521        Vector dest = currentAnimation.v - this->getAbsCoor();
     522        dest.y = 0.0f;
    520523        if (dest.len() < .5)
    521524          this->nextStep();
     
    530533      {
    531534        Vector dest = currentAnimation.v - this->getAbsCoor();
     535        dest.y = 0.0f;
    532536        if (dest.len() < .5)
    533537          this->nextStep();
Note: See TracChangeset for help on using the changeset viewer.