Re: [Patch][MEdit][OLC][MobProgs] let mobprogs work right away

From: Robert Sinland (rsinland@ERSKINE.POLARISTEL.NET)
Date: 09/18/97


Chris Jacobson wrote:
>
> Had problems with mobprogs not working when you create them, or stop
> working if you edit one?
> Well, it wasn't setting the flags properly.
>
> In medit.c->medit_save_to_disk() find near the end:
>
> >       GET_MPROG(OLC_MOB(d)) = OLC_MPROGL(d);
> >       GET_MPROG_TYPE(OLC_MOB(d)) = (OLC_MPROGL(d) ? OLC_MPROGL(d)->type : 0);
>         while (OLC_MPROGL(d)) {
>                 GET_MPROG_TYPE(OLC_MOB(d)) |= OLC_MPROGL(d)->type;
>                 OLC_MPROGL(d) = OLC_MPROGL(d)->next;
>         }
> >       OLC_MPROGL(d) = NULL;
>
> insert that while() statement.  That easy.  the OLC_MPROGL(d) = NULL;
> statement is useless then, too.
>
> - Chris Jacobson
>
  Did you mean in  medit_save_internally by chance?
  No, I'm not trying to be sarcastic, but in my medit.c that's where it
looks the closest to what you have.  Just wanted to double check :)
RS


     +------------------------------------------------------------+
     | 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/08/00 PST