Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 21, 2006, 2:10:11 AM (18 years ago)
Author:
patrick
Message:

bsp: found some pretty bugs in the animation code. more to be expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.cc

    r8547 r8655  
    144144          PRINTF(0)("got footsteps: %s\n", this->footsteps.c_str());
    145145        }
    146         else {
     146        else
     147        {
    147148          // assume it's an animation line
    148149          inHeader = false;
     
    159160          // workaround for strange numbering in animation.cfg: skip TORSO frames
    160161          // for LEGS animation lines...
    161           if (animation->type == LEGS) {
    162                                                 //when first LEGS animation is found, calc # of TORSO frames
     162          if( animation->type == LEGS)
     163          {
     164            //when first LEGS animation is found, calc # of TORSO frames
    163165            if( torsoOffset == -1)
    164166              torsoOffset = animation->first - firstTorsoFrame;
     
    167169            animation->offset = torsoOffset;
    168170          }
    169           else if (animation->type == TORSO)
     171          else if( animation->type == TORSO)
    170172            if( firstTorsoFrame == -1)
    171173              firstTorsoFrame = animation->first;
Note: See TracChangeset for help on using the changeset viewer.