Re: Saving Dg

From: Richard Glover (
Date: 03/04/99

Was me.  Upgrade to version 6.

You'll need to do a slight bug fix as well (I've found several, but that's
another story):

In dg_olc.c, function trigedit_create_index, find the appropriate code and
fix it to this:

  while (get_line(oldfile, buf)) {
    if (*buf == '$') {
      fprintf(newfile, "%s\n$\n", (!found ? buf1 : ""));
    } else if (!found) {
      sscanf(buf, "%d", &num);
      if (num > znum) {
        found = TRUE;
        fprintf(newfile, "%s\n", buf1);
      } else if (num == znum)
 found = TRUE;
    fprintf(newfile, "%s\n", buf);

Before, it would create duplicate entries of whatever zone you save.


-----Original Message-----
From: Jeramy Singleton <>
To: <>
Date: Thursday, March 04, 1999 7:05 AM
Subject: Re:  Saving Dg

>for some reason my posts aren't getting to the mailing list until way after
>i've sent them so its making me look really dumb. But someone was close
>the answer, can't remember the name cause i erased the email.  The trigger
>there, but for some reason its not saving it to the index file. Anyone know
>why? When i patched dg in i went in cleanly no errors.

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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