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

From: Chris Jacobson (fear@ATHENET.NET)
Date: 09/18/97

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

PS. Sorry it took me 3 months to share this patch, just noticed it now
and thought "hey I never sent this to the list, and George's patch
doesn't fix this, so..."

     | 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