Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in xio.c.




This is a diff that fixes a bug that has been with us for a while.
Everybody has believed that it was caused by the bags, this is not
so (as you'll see from the diff). The symptom of the bug was that
the inventory-window got messed up as soon as you picked something
up from a pile greater than the look_window could display.

Enjoy, Eneq.

**********DIFF
*** xio.c.orig  Mon Mar 15 19:04:40 1993
--- xio.c       Tue Mar 16 15:46:35 1993
***************
*** 689,695 ****
                       ,buf,strlen(buf));
    }
    if((i-p->scroll_inv)<=p->nrofdrawn_inv) {
!     int start_height=24+24*(i-p->scroll_look);
      int height;
      for(j=i;(j-p->scroll_inv)<=p->nrofdrawn_inv&&
          (j-p->scroll_inv)<p->inv_size;j++)
--- 689,695 ----
                       ,buf,strlen(buf));
    }
    if((i-p->scroll_inv)<=p->nrofdrawn_inv) {
!     int start_height=24+24*(i-p->scroll_inv);
      int height;
      for(j=i;(j-p->scroll_inv)<=p->nrofdrawn_inv&&
          (j-p->scroll_inv)<p->inv_size;j++)