version 1.6 | | version 1.7 |
---|
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
void cftimer_process_event(object* ob) | | void cftimer_process_event(object* ob) |
{ | | { |
CFParm CFP; | | execute_event(ob, EVENT_TIMER,NULL,NULL,NULL,SCRIPT_FIX_ALL); |
int k, l, m; | | |
uint32 n; | | |
event *evt; | | |
| | |
if ((evt = find_event(ob, EVENT_TIMER)) != NULL) | | |
{ | | |
k = EVENT_TIMER; | | |
l = SCRIPT_FIX_ALL; | | |
m = 0; | | |
n = 0; | | |
CFP.Value[0] = &k; | | |
CFP.Value[1] = ob; | | |
CFP.Value[2] = NULL; | | |
CFP.Value[3] = NULL; | | |
CFP.Value[4] = NULL; | | |
CFP.Value[5] = &n; | | |
CFP.Value[6] = &m; | | |
CFP.Value[7] = &m; | | |
CFP.Value[8] = &l; | | |
CFP.Value[9] = (void*)evt->hook; | | |
CFP.Value[10]= (void*)evt->options; | | |
if (findPlugin(evt->plugin)>=0) | | |
((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); | | |
} | | |
} | | } |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |