On Fri, 17 Nov 1995, Pink Floyd wrote: > I noticed you store pointers to victim, object, etc.. How do you deal with > a char or vict logging out, or an obj/mob being deleted, after the event has > been loaded but before it has been executed? I have imped my own events queue > and have been toying with the idea of having every char, mob, and obj have > a pointer to a linked list that points to every event that they are loaded > for. The other option is, on the freeing of a char/obj, to go through the > whole event queue and compare every pointer to see if it matches. In my event queue, this is what I did. I would search the list when a char or obj is extracted and see if they have any events pointing to them. I would be interested in hearing how others have done it.
This archive was generated by hypermail 2b30 : 12/07/00 PST