Difference for server/resurrection.c from version 1.6 to 1.7


version 1.6 version 1.7
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_resurrection_c =   * static char *rcsid_resurrection_c =
  *   "$Id: resurrection.c,v 1.6 2001/07/14 04:11:18 mwedel Exp $";   *   "$Id: resurrection.c,v 1.7 2001/10/15 21:12:08 garbled Exp $";
  */   */
   
 /*  /*
Line 168
 
Line 168
     */      */
   chance+=levelcaster-leveldead;    chance+=levelcaster-leveldead;
   if(chance<4) chance=4;    if(chance<4) chance=4;
   if(chance>RANDOM()%20) return 0;  /* resurrection succeeds */    if(chance>rndm(0, 19)) return 0;  /* resurrection succeeds */
   return 1;    return 1;
 }  }
   
Line 255
 
Line 255
       }        }
      if(rspell==SP_REINCARNATION) {       if(rspell==SP_REINCARNATION) {
  if(! (strcmp(buf2,"race"))) {   if(! (strcmp(buf2,"race"))) {
      sprintf(buf,"race %s\n",races[RANDOM()%12+1]);       sprintf(buf,"race %s\n",races[rndm(1, 12)]);
  }   }
      }       }
   fputs(buf,liveplayer);    fputs(buf,liveplayer);


Legend:
line(s) removed in v.1.6 
line(s) changed
 line(s) added in v.1.7

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