version 1.37 | | version 1.38 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.37 2002/08/22 12:37:55 jbontje Exp $"; | | * "$Id: c_object.c,v 1.38 2002/09/11 06:21:46 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
{ | | { |
object *tmp, *next; | | object *tmp, *next; |
| | |
tmp=(op->container) ? op->container->inv : op->below; | | if (op->container) |
| | tmp=op->container; |
| | else { |
| | tmp=op->above; |
| | if (tmp) while (tmp->above) { |
| | tmp=tmp->above; |
| | } |
| | if (!tmp) |
| | tmp=op->below; |
| | } |
| | |
if (tmp==NULL) { | | if (tmp==NULL) { |
new_draw_info(NDI_UNIQUE, 0,op,"Nothing to take!"); | | new_draw_info(NDI_UNIQUE, 0,op,"Nothing to take!"); |
return 0; | | return 0; |