>From: Kras Kresh <kras_kresh@HOTMAIL.COM> >Subject: [CIRCLE] shops and specs bug >Date: Thu, 2 May 2002 02:21:22 +0000 > >SPECIAL(shop_keeper) >{ > char argm[MAX_INPUT_LENGTH]; > struct char_data *keeper = (struct char_data *) me; > int shop_nr; > > for (shop_nr = 0; shop_nr <= top_shop; shop_nr++) > if (SHOP_KEEPER(shop_nr) == keeper->nr) > break; > > if (shop_nr > top_shop) > return (FALSE); > > if (SHOP_FUNC(shop_nr)) /* Check secondary function */ > if ((SHOP_FUNC(shop_nr)) (ch, me, cmd, arg)) > return (TRUE); > i made a mistake, i had "*this" changed to "shop_keeper", but seems hotmail didn't catch it. well here it is below. also, i noticed another bug there. if you look above, you see (SHOP_FUNC(shop_nr)) (ch, me, cmd, arg), but SPECIAL(shop_keeper) passes "argument", not arg. i'm sure this was fixed in the newest updates from cvs in getting rid of the global buffers. change to: if (SHOP_FUNC(shop_nr) && SHOP_FUNC(shop_nr) != shop_keeper) if ((SHOP_FUNC(shop_nr)) (ch, me, cmd, argument)) return (TRUE); _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- +---------------------------------------------------------------+ | 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