version 1.26 | | version 1.27 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.26 2001/06/13 12:51:58 michtoen Exp $"; | | * "$Id: c_object.c,v 1.27 2001/07/14 04:11:18 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if (op->type == PLAYER) | | if (op->type == PLAYER) |
esrv_del_item (op->contr, tmp->count); | | esrv_del_item (op->contr, tmp->count); |
insert_ob_in_map(tmp, op->map, op); | | insert_ob_in_map(tmp, op->map, op,0); |
| | |
| | |
SET_FLAG (op, FLAG_NO_APPLY); | | SET_FLAG (op, FLAG_NO_APPLY); |
remove_ob(op); | | remove_ob(op); |
insert_ob_in_map_simple(op, op->map); | | insert_ob_in_map(op, op->map, op, INS_NO_MERGE | INS_NO_WALK_ON); |
CLEAR_FLAG (op, FLAG_NO_APPLY); | | CLEAR_FLAG (op, FLAG_NO_APPLY); |
| | |
/* Call this before we update the various windows/players. At least | | /* Call this before we update the various windows/players. At least |
| | |
/* esrv_send_item (op, tmp);*/ | | /* esrv_send_item (op, tmp);*/ |
/* Need to update the weight for the player */ | | /* Need to update the weight for the player */ |
esrv_send_item (op, op); | | esrv_send_item (op, op); |
}; | | } |
| | |
#ifdef USE_LIGHTING | | |
if(tmp->glow_radius>0) remove_light_from_list(tmp,op); | | |
#endif | | |
} | | } |
| | |
void drop(object *op, object *tmp) | | void drop(object *op, object *tmp) |