Difference for common/living.c from version 1.21 to 1.22


version 1.21 version 1.22
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_living_c =   * static char *rcsid_living_c =
  *   "$Id: living.c,v 1.21 2001/01/08 21:33:11 avogl Exp $";   *   "$Id: living.c,v 1.22 2001/02/01 05:02:55 cvs Exp $";
  */   */
   
 /*  /*
Line 1115
 
Line 1115
     if(pl_level<1) pl_level=1; /* safety, we should always get 1 levels worth of hp! */       if(pl_level<1) pl_level=1; /* safety, we should always get 1 levels worth of hp! */
     for(i=1,op->stats.maxhp=0;i<=pl_level&&i<=10;i++) {      for(i=1,op->stats.maxhp=0;i<=pl_level&&i<=10;i++) {
       j=op->contr->levhp[i]+con_bonus[op->stats.Con]/2;        j=op->contr->levhp[i]+con_bonus[op->stats.Con]/2;
       if(i%2&&con_bonus[op->stats.Con]%2)        if(i%2&&con_bonus[op->stats.Con]%2) {
    if (con_bonus[op->stats.Con]>0)
         j++;          j++;
    else
        j--;
         }
       op->stats.maxhp+=j>1?j:1;        op->stats.maxhp+=j>1?j:1;
     }      }
     for(i=11;i<=op->level;i++)      for(i=11;i<=op->level;i++)


Legend:
line(s) removed in v.1.21 
line(s) changed
 line(s) added in v.1.22

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:09