version 1.21 | | version 1.22 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.21 2001/12/23 08:17:36 mwedel Exp $"; | | * "$Id: item.c,v 1.22 2002/04/19 05:28:13 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2000 Mark Wedel | | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | |
The author can be reached via e-mail to mwedel@scruz.net | | The author can be reached via e-mail to crossfire-devel@real-time.com |
*/ | | */ |
| | |
/* This containes item logic for client/server. IT doesn't contain | | /* This containes item logic for client/server. IT doesn't contain |
| | |
#if 0 | | #if 0 |
printf ("Sacks name was '%s'.\n", env->name); | | printf ("Sacks name was '%s'.\n", env->name); |
#endif | | #endif |
| | /* put_object_in_sack presumes that necessary sanity checking |
| | * has already been done (eg, it can be picked up and fits in |
| | * in a sack, so check for those things. We should also check |
| | * an make sure env is in fact a container for that matter. |
| | */ |
| | if (env->type == CONTAINER && can_pick(pl, op) && sack_can_hold(pl, env, op, nrof)) { |
put_object_in_sack (pl, env, op, nrof); | | put_object_in_sack (pl, env, op, nrof); |
} | | } |
| | } |
| | |
| | |