version 1.48 | | version 1.49 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.48 2003/04/02 08:13:26 mwedel Exp $"; | | * "$Id: c_object.c,v 1.49 2003/06/26 11:27:43 gros Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
{ | | { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
object *floor; | | object *floor; |
| | event *evt; |
| | |
if (QUERY_FLAG(tmp, FLAG_NO_DROP)) { | | if (QUERY_FLAG(tmp, FLAG_NO_DROP)) { |
#if 0 | | #if 0 |
| | |
} else | | } else |
remove_ob (tmp); | | remove_ob (tmp); |
/* GROS: Handle for plugin drop event */ | | /* GROS: Handle for plugin drop event */ |
if(tmp->event_hook[EVENT_DROP] != NULL) | | if ((evt = find_event(tmp, EVENT_DROP)) != NULL) |
{ | | { |
CFParm CFP; | | CFParm CFP; |
CFParm *CFR; | | CFParm *CFR; |
| | |
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] = tmp->event_hook[k]; | | CFP.Value[9] = evt->hook; |
CFP.Value[10]= tmp->event_options[k]; | | CFP.Value[10]= evt->options; |
if (findPlugin(tmp->event_plugin[k])>=0) | | if (findPlugin(evt->plugin)>=0) |
{ | | { |
CFR = ((PlugList[findPlugin(tmp->event_plugin[k])].eventfunc) (&CFP)); | | CFR = ((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); |
rtn_script = *(int *)(CFR->Value[0]); | | rtn_script = *(int *)(CFR->Value[0]); |
if (rtn_script!=0) return; | | if (rtn_script!=0) return; |
} | | } |