[CODE] Patch Update to Shop.c for bp21

From: Justin Adler (spam@WORLD-DOMINATION.COM.AU)
Date: 07/27/02


While trying to update my shop.c from bp11 to 21 (eeks!), i noticed both
versions (and therefore all versions?) do not display the item being SOLD
properly.

in shop.c, line 616 (bp21), i've added this line in

<< MAILER CODE >>
...
if (!IS_GOD(ch))
    GET_GOLD(keeper) += goldamt;

+ strlcpy (name, obj->short_description, sizeof(name));

  strlcpy(tempstr, times_message(ch->carrying, 0, bought), sizeof
(tempstr));

  snprintf(tempbuf, sizeof(tempbuf), "$n buys %s.", tempstr);
  act(tempbuf, FALSE, ch, obj, 0, TO_ROOM);
...

if u don't add that line, then the text displayed is the keyword the
SELLER has entered.

eg.
The Keeper now has

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT