[TOTD] (maybe) purgeplay

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 04/22/98


I added this to the purgeplay utility to reduce the number of idnum's used.
at the top:
int count =0;


at the save line:
if (okay)
    {
+    count++;
+    player.char_specials_saved.idnum = count;
    fwrite(&player, sizeof(struct char_file_u), 1, outfile);
    }



I did this because the code seems to assume that ID nums are in sequential
order.  seemed kind of bad to have big gaping holes in there. esp since i can
now do a binary search by idnum on the player_table

Anyone see any code conflicts here?

--Angus


     +------------------------------------------------------------+
     | 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