version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.10 2000/08/07 05:16:34 cvs Exp $"; | | * "$Id: c_object.c,v 1.11 2000/10/22 14:27:39 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
free_object(tmp); | | free_object(tmp); |
return; | | return; |
} | | } |
| | |
| | /* startequip items are not allowed to be put into containers: */ |
| | if (pl->type == PLAYER && op->type == CONTAINER && |
| | QUERY_FLAG(tmp, FLAG_STARTEQUIP)) { |
| | new_draw_info(NDI_UNIQUE, 0,pl,"This object cannot be put into containers!"); |
| | return; |
| | } |
| | |
if (nrof==0 || nrof>tmp->nrof) nrof=(tmp->nrof?tmp->nrof:1); | | if (nrof==0 || nrof>tmp->nrof) nrof=(tmp->nrof?tmp->nrof:1); |
/* Figure out how much weight this object will add to the player */ | | /* Figure out how much weight this object will add to the player */ |
weight = tmp->weight * nrof; | | weight = tmp->weight * nrof; |