version 1.10 | | version 1.11 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.10 2001/02/23 06:06:35 mwedel Exp $"; | | * "$Id: item.c,v 1.11 2001/03/29 07:46:49 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (!to) { /* drop it to the ground */ | | if (!to) { /* drop it to the ground */ |
/* printf ("Drop it on the ground.\n");*/ | | /* printf ("Drop it on the ground.\n");*/ |
| | |
| | if (op->map && !op->env) { |
| | /* LOG(llevDebug,"Dropping object to ground that is already on ground\n");*/ |
| | return; |
| | } |
/* If it is an active container, then we should drop all objects | | /* If it is an active container, then we should drop all objects |
* in the container and not the container itself. | | * in the container and not the container itself. |
*/ | | */ |
| | |
} | | } |
return; | | return; |
} else if (to == pl->count) { /* pick it up to the inventory */ | | } else if (to == pl->count) { /* pick it up to the inventory */ |
| | /* return if player has already picked it up */ |
| | if (op->env == pl) return; |
| | |
pl->contr->count = nrof; | | pl->contr->count = nrof; |
pick_up(pl, op); | | pick_up(pl, op); |
return ; | | return ; |