version 1.57 | | version 1.58 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.57 2004/04/26 05:07:52 mwedel Exp $"; | | * "$Id: c_object.c,v 1.58 2004/06/13 17:30:38 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
esrv_send_item (pl, tmp); | | esrv_send_item (pl, tmp); |
/* These are needed to update the weight for the container we | | /* These are needed to update the weight for the container we |
* are putting the object in, and the players weight, if different. | | * are putting the object in. |
*/ | | */ |
| | if (op!=pl) { |
esrv_update_item (UPD_WEIGHT, pl, op); | | esrv_update_item (UPD_WEIGHT, pl, op); |
if (op!=pl) esrv_send_item (pl, pl); | | esrv_send_item (pl, pl); |
| | } |
| | |
/* Update the container the object was in */ | | /* Update the container the object was in */ |
if (env && env!=pl && env!=op) esrv_update_item (UPD_WEIGHT, pl, env); | | if (env && env!=pl && env!=op) esrv_update_item (UPD_WEIGHT, pl, env); |
| | |
esrv_del_item (op->contr, tmp_tag); | | esrv_del_item (op->contr, tmp_tag); |
| | |
esrv_send_item (op, tmp2); | | esrv_send_item (op, tmp2); |
/* update the sacks and players weight */ | | /* update the sacks weight */ |
esrv_update_item (UPD_WEIGHT, op, sack); | | esrv_update_item (UPD_WEIGHT, op, sack); |
esrv_update_item (UPD_WEIGHT, op, op); | | |
} | | } |
| | |
/* | | /* |