version 1.89 | | version 1.90 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.89 2006/05/05 09:26:36 ryo_saeba Exp $"; | | * "$Id: time.c,v 1.90 2006/07/02 15:32:35 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* client of the change. Insert_ob_in_map takes care of the | | * client of the change. Insert_ob_in_map takes care of the |
* updating the client, so we don't need to do that below. | | * updating the client, so we don't need to do that below. |
*/ | | */ |
if ((pl=is_player_inv(env))!=NULL) { | | if ((pl=get_player_container(env))!=NULL) { |
esrv_del_item(pl->contr, op->count); | | esrv_del_item(pl->contr, op->count); |
esrv_send_item(pl, tmp); | | esrv_send_item(pl, tmp); |
} | | } |
| | |
remove_force(op); | | remove_force(op); |
else { | | else { |
/* IF necessary, delete the item from the players inventory */ | | /* IF necessary, delete the item from the players inventory */ |
object *pl=is_player_inv(op); | | object *pl=get_player_container(op); |
if (pl) | | if (pl) |
esrv_del_item(pl->contr, op->count); | | esrv_del_item(pl->contr, op->count); |
remove_ob(op); | | remove_ob(op); |