version 1.7 | | version 1.8 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.7 2001/11/11 12:37:10 tchize Exp $"; | | * "$Id: plugins.c,v 1.8 2001/11/12 01:09:39 michtoen Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
HookParm->Value[1] = &CFWMoveObject; | | HookParm->Value[1] = &CFWMoveObject; |
break; | | break; |
};*/ | | };*/ |
HookParm->dparm = 2044; | | |
| | /* Serious bug, fix this in all local copies */ |
| | /* HookParm->dparm = 2044; */ |
PlugList[PlugNR].hookfunc(HookParm); | | PlugList[PlugNR].hookfunc(HookParm); |
}; | | }; |
free(HookParm->Value[0]); | | free(HookParm->Value[0]); |
| | |
(object *)(PParm->Value[0]), | | (object *)(PParm->Value[0]), |
(object *)(PParm->Value[1]) | | (object *)(PParm->Value[1]) |
); | | ); |
| | return(PParm); |
}; | | }; |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
(object *)(PParm->Value[0]), | | (object *)(PParm->Value[0]), |
*(int *)(PParm->Value[1]) | | *(int *)(PParm->Value[1]) |
); | | ); |
| | return(PParm); |
}; | | }; |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
{ | | { |
CFParm* CFP; | | CFParm* CFP; |
char* val; | | char* val; |
object* ob; | | /* object* ob; not used */ |
val = (char *)(malloc(sizeof(char)*10240)); | | val = (char *)(malloc(sizeof(char)*10240)); |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
dump_me((object *)(PParm->Value[0]),val); | | dump_me((object *)(PParm->Value[0]),val); |
| | |
}; | | }; |
CFParm* CFWFreeString(CFParm* PParm) | | CFParm* CFWFreeString(CFParm* PParm) |
{ | | { |
CFParm* CFP; | | /* CFParm* CFP; not used */ |
char* val; | | char* val; |
val = (char *)(PParm->Value[0]); | | val = (char *)(PParm->Value[0]); |
free_string (val); | | free_string (val); |
| | |
*(int*)PParm->Value[1]); | | *(int*)PParm->Value[1]); |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
CFP->Value[0] = (void*) &val; | | CFP->Value[0] = (void*) &val; |
| | return(CFP); |
} | | } |
/*****************************************************************************/ | | /*****************************************************************************/ |
/* move_object wrapper. */ | | /* move_object wrapper. */ |
| | |
(object*)PParm->Value[2]); | | (object*)PParm->Value[2]); |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
CFP->Value[0] = (void*) &val; | | CFP->Value[0] = (void*) &val; |
| | |
| | return(CFP); |
} | | } |
| | |
CFParm* CFWSendCustomCommand(CFParm* PParm) | | CFParm* CFWSendCustomCommand(CFParm* PParm) |
| | |
SET_ANIMATION (op,face); | | SET_ANIMATION (op,face); |
} | | } |
update_object(op, UP_OBJ_FACE); | | update_object(op, UP_OBJ_FACE); |
| | return(PParm); |
} | | } |
/*****************************************************************************/ | | /*****************************************************************************/ |
/* communicate wrapper. */ | | /* communicate wrapper. */ |
| | |
result=(object*)find_best_object_match(op,param); | | result=(object*)find_best_object_match(op,param); |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
CFP->Value[0] = (void*) result; | | CFP->Value[0] = (void*) result; |
| | |
| | return(CFP); |
} | | } |
/*****************************************************************************/ | | /*****************************************************************************/ |
/* player_apply_below wrapper. */ | | /* player_apply_below wrapper. */ |
| | |
CFParm* CFWTeleportObject (CFParm* PParm) | | CFParm* CFWTeleportObject (CFParm* PParm) |
{ | | { |
object* current; | | object* current; |
char * mapname; | | /* char * mapname; not used |
int mapx; | | int mapx; |
int mapy; | | int mapy; |
int unique; | | int unique; not used */ |
current=get_object(); | | current=get_object(); |
EXIT_PATH(current)=add_string ((char*)PParm->Value[1]); | | EXIT_PATH(current)=add_string ((char*)PParm->Value[1]); |
EXIT_X(current)=*(int*)PParm->Value[2]; | | EXIT_X(current)=*(int*)PParm->Value[2]; |