~nckmccnnll/faangband/trunk

« back to all changes in this revision

Viewing changes to src/spells2.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:
624
624
              take_hit(damroll(5, 5), "Failed uncursing");
625
625
 
626
626
              /* Gone */
627
 
              inven_item_increase(item, -1);
628
 
              inven_item_optimize(item);
 
627
              if (item >= 0)
 
628
                {
 
629
                   inven_item_increase(item, -1);
 
630
                   inven_item_describe(item);
 
631
                   inven_item_optimize(item);
 
632
                }
 
633
              else
 
634
                {
 
635
                   floor_item_increase(0 - item, -1);
 
636
                   floor_item_describe(0 - item);
 
637
                   floor_item_optimize(0 - item);
 
638
                }
629
639
              return (FALSE);
630
640
          }
631
641
 
2029
2039
    {
2030
2040
      cave_set_feat(py, px, FEAT_LESS);
2031
2041
    }
 
2042
  else if (!stage_map[p_ptr->stage][UP])
 
2043
    {
 
2044
      cave_set_feat(py, px, FEAT_MORE);
 
2045
    }
2032
2046
  else if (rand_int(100) < 50)
2033
2047
    {
2034
2048
      cave_set_feat(py, px, FEAT_MORE);