Re: [Question] act.other.c - do_gen_tog

From: Crimson Wizard (cwizard@GIBLETS.COM)
Date: 07/15/97


On Tue, 15 Jul 1997, Nathan Davies wrote:

> Not sure if this is the direct answer to your problem, but whenever this is
> called, the Nohass flag won't be toggled, or more accurately, it's toggled
> twice.  Change the first toggle to IS_SET or appropriate define...
>
> OR...  put the result = line first, and change the if(PRF.. = 0) to
> if(result = 0)

I changed it to this shortly after that first post, and I still get the
same results.

  case SCMD_NOHASSLE:
    result = PRF_TOG_CHK(ch, PRF_NOHASSLE);
    if (result == 1) {
      if (GET_PROMPT(ch)) {
        free(GET_PROMPT(ch));
        GET_PROMPT(ch) = "<Z:%z R:%r I:%i>&n";
      }
      break;
    }

**Note... I took out the } else { statement that handled the mort prompt,
but it looks the same as before.

--
#!/bin/sh
whois yea.com|grep YEA2|awk '{print $1}'
whois aree.com|grep DOM|awk '{print $1}'
whois aree.com|grep DOM|awk '{print $1}'|cut -c1
whois tm920|grep TM920|awk '{print $4}'|cut -d@ -f1


      +-----------------------------------------------------------+
      | Ensure that you have read the CircleMUD Mailing List FAQ: |
      |   http://cspo.queensu.ca/~fletcher/Circle/list-faq.html   |
      +-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST