Difference for server/disease.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_disease_c =   * static char *rcsid_disease_c =
  *   "$Id: disease.c,v 1.10 2000/11/14 08:37:11 peterm Exp $";   *   "$Id: disease.c,v 1.11 2000/11/17 05:07:49 cvs Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 293
 
Line 293
   else {  /* for diseases which are passed by hitting, set owner and praying skill*/    else {  /* for diseases which are passed by hitting, set owner and praying skill*/
     if(disease->env && disease->env->type==PLAYER) {      if(disease->env && disease->env->type==PLAYER) {
       object *player = disease->env;        object *player = disease->env;
       set_owner(new_disease,player);  
       new_disease->chosen_skill = find_skill(player,SK_PRAYING);        new_disease->chosen_skill = find_skill(player,SK_PRAYING);
   
         /* Not all players have praying.  A side effect here is that
          * players can infect others with diseases they get from traps,
          * but that is not likely a big deal.
          */
         if (new_disease->chosen_skill) {
    set_owner(new_disease,player);
       new_disease->exp_obj = new_disease->chosen_skill->exp_obj;        new_disease->exp_obj = new_disease->chosen_skill->exp_obj;
     }      }
   }    }
     }
   
   insert_ob_in_ob(new_disease,victim);    insert_ob_in_ob(new_disease,victim);
   CLEAR_FLAG(new_disease,FLAG_NO_PASS);    CLEAR_FLAG(new_disease,FLAG_NO_PASS);


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

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