All pastes #28089 Raw Edit

Something

public text v1 · immutable
#28089 ·published 2005-11-09 05:02 UTC
rendered paste body
Index: shop.c
===================================================================
RCS file: /cvsroot/crossfire/crossfire/server/shop.c,v
retrieving revision 1.47
diff -C5 -r1.47 shop.c
*** shop.c      28 Oct 2005 19:08:53 -0000      1.47
--- shop.c      9 Nov 2005 05:00:18 -0000
***************
*** 659,668 ****
--- 659,669 ----
        for (i=0; i< NUM_COINS; i++)
            if (!strcmp(coins[i], item->arch->name))
                coincount[i] += item->nrof;
        if (item->inv) item = item->inv;
        else if (item->below) item = item->below;
+       else if (item->env && item->env != pl && item->env->below) item = item->env->below;
        else item = NULL;
      }
      if (unpaid_price > player_wealth) {
        char buf[MAX_BUF], coinbuf[MAX_BUF];
        int denominations = 0;