~nckmccnnll/faangband/trunk

« back to all changes in this revision

Viewing changes to src/files.c

  • Committer: Nick McConnell
  • Date: 2010-12-07 08:09:49 UTC
  • mfrom: (125.1.16 bug-fix)
  • Revision ID: nckmccnnll@yahoo.com.au-20101207080949-x6pnlwvotoa83r0i
Bugfixes from LostTemplar

Show diffs side-by-side

added added

removed removed

Lines of Context:
948
948
  object_type *o_ptr;
949
949
  int value;
950
950
 
951
 
  int tmp1;
952
951
  int xthn, xthb, xfos, xsrh;
953
952
  int xdis, xdev, xsav, xstl;
954
953
  cptr desc;
1262
1261
      
1263
1262
      
1264
1263
      /* Fighting Skill (with current weapon) */
1265
 
      o_ptr = &inventory[INVEN_WIELD];
1266
 
      tmp1 = p_ptr->to_h + o_ptr->to_h;
1267
 
      xthn = p_ptr->skill_thn + (tmp1 * BTH_PLUS_ADJ);
 
1264
      xthn = p_ptr->skill_thn + (show_m_tohit * BTH_PLUS_ADJ);
1268
1265
      
1269
1266
      /* Shooting Skill (with current bow and normal missile) */
1270
 
      o_ptr = &inventory[INVEN_BOW];
1271
 
      tmp1 = p_ptr->to_h + o_ptr->to_h;
1272
 
      xthb = p_ptr->skill_thb + (tmp1 * BTH_PLUS_ADJ);
 
1267
      xthb = p_ptr->skill_thb + (show_a_tohit * BTH_PLUS_ADJ);
1273
1268
      
1274
1269
      /* Basic abilities */
1275
1270
      xdis = p_ptr->skill_dis;