version 1.65 | | version 1.66 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.65 2005/09/03 19:15:45 tchize Exp $"; | | * "$Id: c_object.c,v 1.66 2005/09/04 16:58:12 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
alt = op; | | alt = op; |
} | | } |
#ifdef PICKUP_DEBUG | | #ifdef PICKUP_DEBUG |
printf ("Pick_up(): %s picks %s (%d) and inserts it %s.\n",op->name, tmp->name, op->contr->count, alt->name); | | LOG(llevDebug, "Pick_up(): %s picks %s (%d) and inserts it %s.\n", op->name, tmp->name, op->contr->count, alt->name); |
#endif | | #endif |
| | |
/* startequip items are not allowed to be put into containers: */ | | /* startequip items are not allowed to be put into containers: */ |
| | |
display_new_pickup( op ); | | display_new_pickup( op ); |
return 1; | | return 1; |
} | | } |
if(1)fprintf(stderr,"command_pickup: !params\n"); | | if(1) LOG(llevDebug, "command_pickup: !params\n"); |
set_pickup_mode(op, (op->contr->mode > 6)? 0: op->contr->mode+1); | | set_pickup_mode(op, (op->contr->mode > 6)? 0: op->contr->mode+1); |
return 0; | | return 0; |
} | | } |
| | |
} | | } |
| | |
if(!sscanf(params, "%ud", &i) || i<0 ) { | | if(!sscanf(params, "%ud", &i) || i<0 ) { |
if(1)fprintf(stderr,"command_pickup: params==NULL\n"); | | if(1) LOG(llevDebug, "command_pickup: params==NULL\n"); |
new_draw_info(NDI_UNIQUE, 0,op,"Usage: pickup <0-7> or <value_density> ."); | | new_draw_info(NDI_UNIQUE, 0,op,"Usage: pickup <0-7> or <value_density> ."); |
return 1; | | return 1; |
} | | } |