Re: Oasis with 128 bit support

From: Mark Gerritsen (m.p.h.gerritsen@STUDENT.UTWENTE.NL)
Date: 05/01/98


At 04:59 PM 4/30/98 -0400, J Horn wrote:
>I've taken stock version 12 circle and applied the 128 bit patch as well
>as Oasis with 128 bit support.
...
>The problem I have noticed right away is when I medit a
>mob and change NPC FLAGS.  For instance, if I choose 3 (SCANVENGER) it
>adds AWARE, if I choose 7 (STAY-ZONE) nothings shows up, if I choose 17
>(!BASH) the mud crashes.

In medit.c, in medit_parse, look for the following:

  case MEDIT_NPC_FLAGS:
    if ((i = atoi(arg)) == 0)
      break;
    else if (!((i < 0) || (i > NUM_MOB_FLAGS)))
      TOGGLE_BIT_AR(MOB_FLAGS(OLC_MOB(d)), 1 << (i - 1));
    medit_disp_mob_flags(d);
    return;

Change this to:

  case MEDIT_NPC_FLAGS:
    if ((i = atoi(arg)) == 0)
      break;
    else if (!((i < 0) || (i > NUM_MOB_FLAGS)))
      TOGGLE_BIT_AR(MOB_FLAGS(OLC_MOB(d)), (i - 1));  /* dropped 1 << */
    medit_disp_mob_flags(d);
    return;

That's all there is to it :)

BTW, I think you did a great job, Tony... of course there'll be small
oversights like this in patches as big as this one. You'd scare me to death
if you got it perfect ;)  I wanna thank you bunches for putting in the work
you did, because it sure helped me a LOT.

Havoc of Dagmarck (Mark Gerritsen)


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



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