version 1.41 | | version 1.42 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.41 2005/09/04 16:58:13 akirschbaum Exp $"; | | * "$Id: plugins.c,v 1.42 2005/09/30 19:14:32 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
object* who; | | object* who; |
CFParm* CFP=(CFParm*)malloc(sizeof (CFParm)); | | CFParm* CFP=(CFParm*)malloc(sizeof (CFParm)); |
static int result; | | static int result; |
| | object* env; |
| | |
who = ( object* )PParm->Value[ 0 ]; | | who = ( object* )PParm->Value[ 0 ]; |
map = ( mapstruct* )PParm->Value[ 1 ]; | | map = ( mapstruct* )PParm->Value[ 1 ]; |
x = *( int* )PParm->Value[ 2 ]; | | x = *( int* )PParm->Value[ 2 ]; |
y = *( int* )PParm->Value[ 3 ]; | | y = *( int* )PParm->Value[ 3 ]; |
| | env = who->env; |
| | |
CFP->Value[ 0 ] = (void *)&result; | | CFP->Value[ 0 ] = (void *)&result; |
if ( ( out_of_map( map,x,y ) ) == 0 ) | | if ( ( out_of_map( map,x,y ) ) == 0 ) |
| | |
| | |
insert_ob_in_map( who, map, NULL, 0 ); | | insert_ob_in_map( who, map, NULL, 0 ); |
result = 0; | | result = 0; |
| | if ( env->type == PLAYER && env->contr ) |
| | esrv_del_item(env->contr,who->count); |
}; | | }; |
| | |
return CFP; | | return CFP; |