Re: [CODE][NEWBIE]event system for objects

From: Mundi King (kingmundi@yahoo.com)
Date: 12/20/98


once again, moments after i hit send mail,
i come up with an idea that might fix the problem,

what if one were to simply put code in extract_obj
to say,
if this event is happening now,
which should only occur if extract_obj is called
from the event? correct?

then dont clear the event (because we are still
in the middle of the event)

something along the lines of this,

if (GET_TICK_EVENT(obj))
{
  if (event_time(obj->ticking_events)>0)
  {
    event_cancel(GET_TICK_EVENT(obj));
    GET_TICK_EVENT(obj) = NULL;
  }
}

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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