Difference for common/living.c from version 1.78 to 1.79


version 1.78 version 1.79
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_living_c =   * static char *rcsid_living_c =
  *   "$Id: living.c,v 1.78 2006/04/06 21:18:34 tchize Exp $";   *   "$Id: living.c,v 1.79 2006/08/26 17:56:19 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 765
 
Line 765
   
 void fix_player(object *op) {  void fix_player(object *op) {
     int i,j;      int i,j;
     event *evt;  
     float f,max=9,added_speed=0,bonus_speed=0, sp_tmp,speed_reduce_from_disease=1;      float f,max=9,added_speed=0,bonus_speed=0, sp_tmp,speed_reduce_from_disease=1;
     int weapon_weight=0,weapon_speed=0;      int weapon_weight=0,weapon_speed=0;
     int best_wc=0, best_ac=0, wc=0, ac=0;      int best_wc=0, best_ac=0, wc=0, ac=0;
Line 1082
 
Line 1081
       * extra strength damage, this is where the code should        * extra strength damage, this is where the code should
       * go.        * go.
       */        */
      evt = find_event(tmp,EVENT_ATTACK);  
      if (evt != NULL) {  
  if (op->current_weapon_script)  
      free_string(op->current_weapon_script);  
  op->current_weapon_script=add_string(query_name(tmp));  
      }  
      op->current_weapon = tmp;       op->current_weapon = tmp;
      if(settings.spell_encumbrance == TRUE && op->type==PLAYER)       if(settings.spell_encumbrance == TRUE && op->type==PLAYER)
  op->contr->encumbrance+=(int)3*tmp->weight/1000;   op->contr->encumbrance+=(int)3*tmp->weight/1000;


Legend:
line(s) removed in v.1.78 
line(s) changed
 line(s) added in v.1.79

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