Ignore:
Timestamp:
Mar 18, 2008, 9:36:56 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of ugly tabs and trailing spaces everywhere.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/morpher.cpp

    r123 r124  
    2323    mor->show(screen,rx,ry,color_table,pal,1000);
    2424    cx+=dcx;
    25     cy+=dcy; 
     25    cy+=dcy;
    2626    fleft--;
    2727  }
     
    3131
    3232morph_char::morph_char(game_object *who, int to_type, void (*stat_fun)(int), int anneal, int frames)
    33 { 
     33{
    3434  mor=NULL;
    3535  character_type *t1=figures[who->otype],*t2=figures[to_type];
    36   if (!t1->has_sequence(morph_pose) || t1->morph_mask<0 || 
     36  if (!t1->has_sequence(morph_pose) || t1->morph_mask<0 ||
    3737      !t2->has_sequence(morph_pose) || t2->morph_mask<0)
    3838    fleft=0;
     
    4343      switch (morph_detail)
    4444      {
    45         case HIGH_DETAIL :
    46         { anneal=30; } break;
    47         case MEDIUM_DETAIL :
    48         { anneal=15; } break;
    49         case LOW_DETAIL :
    50         { anneal=8; } break;
    51         case POOR_DETAIL :
    52         { anneal=3; } break;
     45    case HIGH_DETAIL :
     46    { anneal=30; } break;
     47    case MEDIUM_DETAIL :
     48    { anneal=15; } break;
     49    case LOW_DETAIL :
     50    { anneal=8; } break;
     51    case POOR_DETAIL :
     52    { anneal=3; } break;
    5353      }
    5454    }
     
    7474      if (who->direction>0)
    7575      {
    76         cx=((int)f1->xcfg)<<16;
    77         dcx=(((int)f2->xcfg-(int)f1->xcfg)<<16)/(fleft-1);
     76    cx=((int)f1->xcfg)<<16;
     77    dcx=(((int)f2->xcfg-(int)f1->xcfg)<<16)/(fleft-1);
    7878      } else
    7979      {
    80         cx=(mor->w-((int)f1->xcfg))<<16;
    81         dcx=((((int)f1->xcfg-(int)f2->xcfg))<<16)/(fleft-1);
     80    cx=(mor->w-((int)f1->xcfg))<<16;
     81    dcx=((((int)f1->xcfg-(int)f2->xcfg))<<16)/(fleft-1);
    8282      }
    8383      cy=((int)f1->height()-1)<<16;
    8484      dcy=((f2->height()-f1->height())<<16)/(fleft-1);
    85     } else 
     85    } else
    8686    {
    8787      delete sm;
    8888      fleft=0;
    8989    }
    90   }   
     90  }
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.