version 1.128 | | version 1.129 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.128 2003/04/15 05:57:59 mwedel Exp $"; | | * "$Id: player.c,v 1.129 2003/06/26 11:27:43 gros Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
int killed_script_rtn; /* GROS: For script return value */ | | int killed_script_rtn; /* GROS: For script return value */ |
CFParm CFP; | | CFParm CFP; |
int evtid; | | int evtid; |
| | event *evt; |
if(save_life(op)) | | if(save_life(op)) |
return; | | return; |
| | |
| | |
return; | | return; |
} | | } |
/* GROS: Handle for plugin death event */ | | /* GROS: Handle for plugin death event */ |
if(op->event_hook[EVENT_DEATH] != NULL) | | if ((evt = find_event(op, EVENT_DEATH)) != NULL) |
{ | | { |
CFParm* CFR; | | CFParm* CFR; |
int k, l, m; | | int k, l, m; |
| | |
CFP.Value[6] = &m; | | CFP.Value[6] = &m; |
CFP.Value[7] = &m; | | CFP.Value[7] = &m; |
CFP.Value[8] = &l; | | CFP.Value[8] = &l; |
CFP.Value[9] = op->event_hook[k]; | | CFP.Value[9] = evt->hook; |
CFP.Value[10]= op->event_options[k]; | | CFP.Value[10]= evt->options; |
if (findPlugin(op->event_plugin[k])>=0) | | if (findPlugin(evt->plugin)>=0) |
{ | | { |
CFR = (PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP); | | CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP); |
killed_script_rtn = *(int *)(CFR->Value[0]); | | killed_script_rtn = *(int *)(CFR->Value[0]); |
free(CFR); | | free(CFR); |
if (killed_script_rtn) | | if (killed_script_rtn) |