Difference for server/disease.c from version 1.18 to 1.19


version 1.18 version 1.19
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_disease_c =   * static char *rcsid_disease_c =
  *   "$Id: disease.c,v 1.18 2001/09/26 21:34:08 garbled Exp $";   *   "$Id: disease.c,v 1.19 2002/07/09 04:27:06 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
   
     Copyright (C) 2000 Mark Wedel      Copyright (C) 2002 Mark Wedel & Crossfire Development Team
     Copyright (C) 1992 Frank Tore Johansen      Copyright (C) 1992 Frank Tore Johansen
   
     This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
Line 22
 
Line 22
     along with this program; if not, write to the Free Software      along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
     The author can be reached via e-mail to mwedel@scruz.net      The authors can be reached via e-mail to crossfire-devel@real-time.com
 */  */
   
 /*  This file contains all the code implementing diseases,  /*  This file contains all the code implementing diseases,
Line 377
 
Line 377
       if(disease->stats.dam != 0) {        if(disease->stats.dam != 0) {
  int dam = disease->stats.dam;   int dam = disease->stats.dam;
  /* reduce the damage, on average, 50%, and making things random. */   /* reduce the damage, on average, 50%, and making things random. */
  dam = random_roll(1, dam, victim, PREFER_LOW);   dam = random_roll(1, FABS(dam), victim, PREFER_LOW);
  if(disease->stats.dam < 0) dam = -dam;   if(disease->stats.dam < 0) dam = -dam;
  new_symptom->stats.dam = dam;   new_symptom->stats.dam = dam;
       }        }


Legend:
line(s) removed in v.1.18 
line(s) changed
 line(s) added in v.1.19

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