version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.29 2002/08/26 07:14:11 mwedel Exp $"; | | * "$Id: skills.c,v 1.30 2002/09/28 07:19:40 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); |
pick_up(who, tmp); | | pick_up(who, tmp); |
if(can_pick(who,tmp)) { | | /* need to see if the player actually stole this item - |
| | * if it is in the players inv, assume it is. This prevents |
| | * abuses where the player can not carry the item, so just |
| | * keeps stealing it over and over. |
| | */ |
| | if (who == is_player_inv(tmp)) { |
/* for players, play_sound: steals item */ | | /* for players, play_sound: steals item */ |
success = tmp; | | success = tmp; |
CLEAR_FLAG(tmp, FLAG_INV_LOCKED); | | CLEAR_FLAG(tmp, FLAG_INV_LOCKED); |