Re: Another Romance Fix

From: Chris Gilbert (chris@buzzbee.freeserve.co.uk)
Date: 01/14/01


On Sunday 14 January 2001  8:52 am, Craig Cooney wrote:
> Hmm, there's a bug in the Propose command
> that always returns, "But you're not dating %s!",
> even if you actually are.
>
> Find the lines that look like this in the command:
>
> /* Okay, we've established you're both dating
> someone.. */
> else if (PARTNER(ch) != GET_NAME(victim)) {
>
> Change the else if to look like like this instead:
>
> else if (*PARTNER(ch) != *GET_NAME(victim)) {

Shouldn't that be a strcmp (or is it str_cmp)?  Currently it checks the
contents of PARTNER(ch) and GET_NAME, which will be a char.  IE anyone with
the same initial will be the partner.

Chris

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST